weka.classifiers.rules
Class FRIP.NumericAntd

java.lang.Object
  extended by weka.classifiers.rules.FRIP.Antd
      extended by weka.classifiers.rules.FRIP.NumericAntd
All Implemented Interfaces:
java.io.Serializable, weka.core.Copyable, weka.core.WeightedInstancesHandler
Enclosing class:
FRIP

protected class FRIP.NumericAntd
extends FRIP.Antd

The antecedent with numeric attribute

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
          for serialization
protected  double splitPoint
          The split point for this numeric antecedent
protected  double supportBound
          The edge point for the fuzzy set of this numeric antecedent
 
Fields inherited from class weka.classifiers.rules.FRIP.Antd
accu, accuRate, att, cover, maxInfoGain, value
 
Constructor Summary
FRIP.NumericAntd(weka.core.Attribute a)
          Constructor
 
Method Summary
 java.lang.Object copy()
          Implements Copyable
 double covers(weka.core.Instance inst)
          The degree of coverage for the instance given that antecedent
 double getSplitPoint()
          Get split point of this numeric antecedent
 weka.core.Instances[] splitData(weka.core.Instances insts, double defAcRt, double cl)
          Implements the splitData function.
 java.lang.String toString()
          Prints this antecedent
 
Methods inherited from class weka.classifiers.rules.FRIP.Antd
getAccu, getAccuRate, getAttr, getAttrValue, getCover, getMaxInfoGain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
for serialization

See Also:
Constant Field Values

splitPoint

protected double splitPoint
The split point for this numeric antecedent


supportBound

protected double supportBound
The edge point for the fuzzy set of this numeric antecedent

Constructor Detail

FRIP.NumericAntd

public FRIP.NumericAntd(weka.core.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

Specified by:
copy in interface weka.core.Copyable
Specified by:
copy in class FRIP.Antd
Returns:
a copy of this object

splitData

public weka.core.Instances[] splitData(weka.core.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 FRIP.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 double covers(weka.core.Instance inst)
The degree of coverage for the instance given that antecedent

Specified by:
covers in class FRIP.Antd
Parameters:
inst - the instance in question
Returns:
the numeric value indicating the membership of the instance for this antecedent

toString

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

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