public class Test extends Object implements 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.
|
String |
getRevision()
Returns the revision string.
|
boolean |
passesTest(Instance inst)
Determines whether an instance passes the test.
|
String |
toPrologString()
Returns the test represented by a string in Prolog notation.
|
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 Exception
inst - the instanceException - if something goes wrongpublic String toString()
public String toPrologString()
public boolean equalTo(Test t)
t - the test the object is compared topublic String getRevision()
getRevision in interface RevisionHandlerCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.