public abstract class Rule extends java.lang.Object implements WeightedInstancesHandler, Copyable, java.io.Serializable, RevisionHandler
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copy()
Get a shallow copy of this rule
|
abstract boolean |
covers(Instance datum)
Whether the instance covered by this rule
|
abstract double |
getConsequent()
Get the consequent of this rule, i.e.
|
abstract void |
grow(Instances data)
Build this rule
|
abstract boolean |
hasAntds()
Whether this rule has antecedents, i.e.
|
abstract double |
size()
The size of the rule.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRevision
public java.lang.Object copy()
public abstract boolean covers(Instance datum)
datum
- the instance in questionpublic abstract void grow(Instances data) throws java.lang.Exception
data
- the data used to build the rulejava.lang.Exception
- if rule cannot be builtpublic abstract boolean hasAntds()
public abstract double getConsequent()
public abstract double size()