dm.mine
Class GiniDTClassProc.Rule
java.lang.Object
|
+--dm.mine.GiniDTClassProc.Rule
- Enclosing class:
- GiniDTClassProc
- public class GiniDTClassProc.Rule
- extends java.lang.Object
Internal class to represents a data mining rule
Constructor Summary |
GiniDTClassProc.Rule(double support,
double confidence,
java.util.List ant_dims,
java.util.List ant_vals,
java.lang.String conseq_label,
java.lang.Integer consequent)
Rule constructor |
Method Summary |
void |
addAllAntecedents(java.util.List dims,
java.util.List vals)
Add a list of antecedents to this rule |
void |
addAntecedent(Dimension d,
java.lang.Integer val)
Add an antecedent to this rule |
java.lang.String |
toString()
Convert this rule to String format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_dSupport
public double _dSupport
- Data members
_dConf
public double _dConf
_alDims
public java.util.ArrayList _alDims
_alDimValues
public java.util.ArrayList _alDimValues
_nConseq
public java.lang.Integer _nConseq
_sConseqLabel
public java.lang.String _sConseqLabel
_df
public java.text.DecimalFormat _df
GiniDTClassProc.Rule
public GiniDTClassProc.Rule(double support,
double confidence,
java.util.List ant_dims,
java.util.List ant_vals,
java.lang.String conseq_label,
java.lang.Integer consequent)
- Rule constructor
- Parameters:
support
- Support value for this ruleconfidence
- Confidence value for this ruleant_dims
- Antecedent dimension indicesant_vals
- Antecedent value selections (match dims)conseq_label
- Consequent label (database column)consequent
- Consequent value
addAntecedent
public void addAntecedent(Dimension d,
java.lang.Integer val)
- Add an antecedent to this rule
- Parameters:
d
- The dimension for this antecedentval
- The value selection for this dimension
addAllAntecedents
public void addAllAntecedents(java.util.List dims,
java.util.List vals)
- Add a list of antecedents to this rule
- Parameters:
dims
- List of dimension indices for this antecedentval
- The value selection for this dimension
toString
public java.lang.String toString()
- Convert this rule to String format
- Overrides:
toString
in class java.lang.Object
- Returns:
- String version of this rule