|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.decisiontree2.learner.NominalValueHistogram
public class NominalValueHistogram
Represents a count histogram for nominal values. It counts the class values for each nominal value. This histogram has all information to calculate the information quality, either for normal nominal splits as well as for binary nominal subset splits.
Constructor Summary | |
---|---|
NominalValueHistogram()
Creates a nominal value histogram. |
|
NominalValueHistogram(NominalValueHistogram template)
Creates a nominal value histogram from the given template. |
Method Summary | |
---|---|
double[][] |
getHistogram()
Returns the count histogram. |
double |
getMissingValueCount()
Returns the sum of weights of the missing values. |
int |
getNumClassValues()
Returns the number of class values of the second dimension of the histogram. |
void |
increment(double nominalValueMapping,
int classValueMapping,
double weight)
Increments the histogram count at the given position for the given weight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NominalValueHistogram()
public NominalValueHistogram(NominalValueHistogram template)
template
- the template histogram from which to initialize the new
histogramMethod Detail |
---|
public void increment(double nominalValueMapping, int classValueMapping, double weight)
nominalValueMapping
- the nominal index for which to increment the
countclassValueMapping
- the class index for which to increment the countweight
- the amount to increase the countpublic double getMissingValueCount()
public double[][] getHistogram()
public int getNumClassValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |