public class Test extends java.lang.Object implements java.io.Serializable, RevisionHandler
Constructor and Description |
---|
Test(int i,
double s,
Instances dataset)
Constructor
|
Test(int i,
double s,
Instances dataset,
boolean n)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalTo(Test t)
Compares the test with the test that is given as parameter.
|
Test |
getNot()
Negates the test.
|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
passesTest(Instance inst)
Determines whether an instance passes the test.
|
java.lang.String |
toPrologString()
Returns the test represented by a string in Prolog notation.
|
java.lang.String |
toString()
Returns the test represented by a string.
|
public Test(int i, double s, Instances dataset)
i
- the attribute indexs
- the splitdataset
- the datasetpublic Test(int i, double s, Instances dataset, boolean n)
i
- the attribute indexs
- the splitdataset
- the datasetn
- whether to negate the testpublic Test getNot()
public boolean passesTest(Instance inst) throws java.lang.Exception
inst
- the instancejava.lang.Exception
- if something goes wrongpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toPrologString()
public boolean equalTo(Test t)
t
- the test the object is compared topublic java.lang.String getRevision()
getRevision
in interface RevisionHandler