weka.classifiers.rules
Class JRip.NumericAntd

java.lang.Object
  extended byweka.classifiers.rules.JRip.Antd
      extended byweka.classifiers.rules.JRip.NumericAntd
All Implemented Interfaces:
Copyable, java.io.Serializable, WeightedInstancesHandler
Enclosing class:
JRip

private class JRip.NumericAntd
extends JRip.Antd

The antecedent with numeric attribute


Field Summary
protected  double accu
           
protected  double accuRate
           
protected  Attribute att
           
protected  double cover
           
protected  double maxInfoGain
           
private  double splitPoint
           
protected  double value
           
 
Constructor Summary
JRip.NumericAntd(Attribute a)
           
 
Method Summary
 java.lang.Object copy()
          Implements Copyable
 boolean covers(Instance inst)
          Whether the instance is covered by this antecedent
 double getAccu()
           
 double getAccuRate()
           
 Attribute getAttr()
           
 double getAttrValue()
           
 double getCover()
           
 double getMaxInfoGain()
           
 double getSplitPoint()
           
 Instances[] splitData(Instances insts, double defAcRt, double cl)
          Implements the splitData function.
 java.lang.String toString()
          Prints this antecedent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

splitPoint

private double splitPoint

att

protected Attribute att

value

protected double value

maxInfoGain

protected double maxInfoGain

accuRate

protected double accuRate

cover

protected double cover

accu

protected double accu
Constructor Detail

JRip.NumericAntd

public JRip.NumericAntd(Attribute a)
Method Detail

getSplitPoint

public double getSplitPoint()

copy

public java.lang.Object copy()
Implements Copyable

Specified by:
copy in interface Copyable
Specified by:
copy in class JRip.Antd

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.

Specified by:
splitData in class JRip.Antd
Parameters:
insts - the data to be split
defAcRt - the default accuracy rate for data
cl - the class label to be predicted
Returns:
the array of data after split

covers

public boolean covers(Instance inst)
Whether the instance is covered by this antecedent

Specified by:
covers in class JRip.Antd
Parameters:
inst - the instance in question
Returns:
the boolean value indicating whether the instance is covered by this antecedent

toString

public java.lang.String toString()
Prints this antecedent

Specified by:
toString in class JRip.Antd
Returns:
a textual description of this antecedent

getAttr

public Attribute getAttr()

getAttrValue

public double getAttrValue()

getMaxInfoGain

public double getMaxInfoGain()

getAccuRate

public double getAccuRate()

getAccu

public double getAccu()

getCover

public double getCover()