Package weka.classifiers.rules
Class JRip.Antd
- java.lang.Object
-
- weka.classifiers.rules.JRip.Antd
-
- All Implemented Interfaces:
java.io.Serializable
,Copyable
,RevisionHandler
,WeightedInstancesHandler
- Direct Known Subclasses:
JRip.NominalAntd
,JRip.NumericAntd
- Enclosing class:
- JRip
public abstract class JRip.Antd extends java.lang.Object implements WeightedInstancesHandler, Copyable, java.io.Serializable, RevisionHandler
The single antecedent in the rule, which is composed of an attribute and the corresponding value. There are two inherited classes, namely NumericAntd and NominalAntd in which the attributes are numeric and nominal respectively.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Object
copy()
Implements Copyableabstract boolean
covers(Instance inst)
double
getAccu()
double
getAccuRate()
Attribute
getAttr()
double
getAttrValue()
double
getCover()
double
getMaxInfoGain()
java.lang.String
getRevision()
Returns the revision string.abstract Instances[]
splitData(Instances data, double defAcRt, double cla)
abstract java.lang.String
toString()
-
-
-
Constructor Detail
-
Antd
public Antd(Attribute a)
Constructor
-
-
Method Detail
-
covers
public abstract boolean covers(Instance inst)
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copy
public abstract java.lang.Object copy()
Implements Copyable
-
getAttr
public Attribute getAttr()
-
getAttrValue
public double getAttrValue()
-
getMaxInfoGain
public double getMaxInfoGain()
-
getAccuRate
public double getAccuRate()
-
getAccu
public double getAccu()
-
getCover
public double getCover()
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
-