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


Field Summary
 java.util.ArrayList _alDims
           
 java.util.ArrayList _alDimValues
           
 double _dConf
           
 java.text.DecimalFormat _df
           
 double _dSupport
          Data members
 java.lang.Integer _nConseq
           
 java.lang.String _sConseqLabel
           
 
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
 

Field Detail

_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
Constructor Detail

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 rule
confidence - Confidence value for this rule
ant_dims - Antecedent dimension indices
ant_vals - Antecedent value selections (match dims)
conseq_label - Consequent label (database column)
consequent - Consequent value
Method Detail

addAntecedent

public void addAntecedent(Dimension d,
                          java.lang.Integer val)
Add an antecedent to this rule
Parameters:
d - The dimension for this antecedent
val - 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 antecedent
val - 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