Package weka.classifiers.rules
Class JRip.NumericAntd
- java.lang.Object
-
- weka.classifiers.rules.JRip.Antd
-
- weka.classifiers.rules.JRip.NumericAntd
-
- All Implemented Interfaces:
java.io.Serializable
,Copyable
,RevisionHandler
,WeightedInstancesHandler
- Enclosing class:
- JRip
public class JRip.NumericAntd extends JRip.Antd
The antecedent with numeric attribute- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NumericAntd(Attribute a)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
copy()
Implements Copyableboolean
covers(Instance inst)
Whether the instance is covered by this antecedentjava.lang.String
getRevision()
Returns the revision string.double
getSplitPoint()
Get split point of this numeric antecedentInstances[]
splitData(Instances insts, double defAcRt, double cl)
Implements the splitData function.java.lang.String
toString()
Prints this antecedent-
Methods inherited from class weka.classifiers.rules.JRip.Antd
getAccu, getAccuRate, getAttr, getAttrValue, getCover, getMaxInfoGain
-
-
-
-
Constructor Detail
-
NumericAntd
public NumericAntd(Attribute a)
Constructor
-
-
Method Detail
-
getSplitPoint
public double getSplitPoint()
Get split point of this numeric antecedent- Returns:
- the split point of this numeric antecedent
-
copy
public java.lang.Object copy()
Implements Copyable
-
splitData
public Instances[] splitData(Instances insts, double defAcRt, double cl)
Implements the splitData function. This procedure is to split the data into two bags according to the information gain of the numeric attribute value The maximum infoGain is also calculated.
-
covers
public boolean covers(Instance inst)
Whether the instance is covered by this antecedent
-
toString
public java.lang.String toString()
Prints this antecedent
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classJRip.Antd
- Returns:
- the revision
-
-