|
||||||||||
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.DataRowWeighted
public class DataRowWeighted
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 | |
---|---|
DataRowWeighted(ClassValueDataRow dataRow,
double weight)
Constructs a weighted data row. |
|
DataRowWeighted(DataRowWeighted dataRow,
double weight)
Constructs a weighted data row from another one and sets the weight to the given value. |
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. |
double |
getWeight()
Return the weight of this data row. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataRowWeighted(ClassValueDataRow dataRow, double weight)
dataRow
- the underlying ClassValueDataRow
weight
- the weight for this DataRowWeighted
public DataRowWeighted(DataRowWeighted dataRow, double weight)
dataRow
- the other DataRowWeighted
weight
- the weight for this DataRowWeighted
Method Detail |
---|
public int getClassValue()
public double getValue(int index)
index
- the column index for which to return the double value
public int getNumAttributes()
public double getWeight()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |