weka.classifiers.rules
Class FRIP.NominalAntd

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

protected class FRIP.NominalAntd
extends FRIP.Antd

The antecedent with nominal attribute

See Also:
Serialized Form

Field Summary
private  double[] accurate
           
private  double[] coverage
           
(package private) static long serialVersionUID
          for serialization
 
Fields inherited from class weka.classifiers.rules.FRIP.Antd
accu, accuRate, att, cover, maxInfoGain, value
 
Constructor Summary
FRIP.NominalAntd(weka.core.Attribute a)
          Constructor
 
Method Summary
 java.lang.Object copy()
          Implements Copyable
 double covers(weka.core.Instance inst)
          Whether the instance is covered by this antecedent
 weka.core.Instances[] splitData(weka.core.Instances data, 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

accurate

private double[] accurate

coverage

private double[] coverage
Constructor Detail

FRIP.NominalAntd

public FRIP.NominalAntd(weka.core.Attribute a)
Constructor

Method Detail

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 data,
                                       double defAcRt,
                                       double cl)
Implements the splitData function. This procedure is to split the data into bags according to the nominal attribute value The infoGain for each bag is also calculated.

Specified by:
splitData in class FRIP.Antd
Parameters:
data - 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)
Whether the instance is covered by this antecedent

Specified by:
covers in class FRIP.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 FRIP.Antd
Returns:
a textual description of this antecedent