|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.discretization.caim2.modelcreator.QuantaMatrix2D
public class QuantaMatrix2D
Implements a 2D quanta matrix that holds for one dimension class values and for the other dimension the intervals of discretization.
Constructor Summary | |
---|---|
QuantaMatrix2D(DiscretizationScheme dScheme,
Map<String,Integer> classValueToIndexMap)
Initializes a new 2D quanta matrix for class value - interval statistics. |
Method Summary | |
---|---|
double |
calculateCaim()
Calculates the current caim value for the quanta matrix. |
void |
countData(BufferedDataTable inputTable,
int columnIndex,
int classColumnIndex)
Counts the distribution of the given column of the input table and stores it into the quanta matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuantaMatrix2D(DiscretizationScheme dScheme, Map<String,Integer> classValueToIndexMap)
dScheme
- the discretization scheme representing the first dimensionclassValueToIndexMap
- the class values representing the other
dimension contains a mapping from the name to the index used
for the matrix valuesMethod Detail |
---|
public void countData(BufferedDataTable inputTable, int columnIndex, int classColumnIndex)
inputTable
- the table to create the statistics forcolumnIndex
- the index of the column this matrix should be used forclassColumnIndex
- the index of the class column of the input tablepublic double calculateCaim()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |