|
||||||||||
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.ClassValueDataRow
public class ClassValueDataRow
A data row represented as a double array. Nominal values must be mapped to be used. The class value is also a mapped int value.
Constructor Summary | |
---|---|
ClassValueDataRow(double[] attributeValues,
int classValue)
Constructs a data row. |
Method Summary | |
---|---|
int |
getClassValue()
Returns the class value. |
int |
getNumAttributes()
Returns the number of attribute values, excluding the class value. |
double |
getValue(int index)
Returns the attribute value for the given index. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassValueDataRow(double[] attributeValues, int classValue)
attributeValues
- the attribute values (nominal values are mapped
doubles)classValue
- the nominal class value mapped to an integerMethod Detail |
---|
public int getClassValue()
public double getValue(int index)
index
- the column index for which to return the double value
public int getNumAttributes()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |