|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.svm.util.DoubleVector
public class DoubleVector
This class is used to represent a vector (in the sense of input data sample). A vector contains double values and the class value.
Constructor Summary | |
---|---|
DoubleVector(ArrayList<Double> values,
String classvalue)
Default constructor with no associated RowKey . |
|
DoubleVector(ModelContentRO predParams,
String id)
Loads a vector from a predParams object. |
|
DoubleVector(RowKey key,
ArrayList<Double> values,
String classvalue)
Default constructor. |
Method Summary | |
---|---|
String |
getClassValue()
|
RowKey |
getKey()
|
int |
getNumberValues()
|
double |
getValue(int i)
return the i'th value in the vector. |
void |
saveTo(ModelContentWO predParams,
String id)
Save the vector to a ModelContent object. |
void |
setClassValue(String value)
Sets the class value of the DoubleVector . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleVector(RowKey key, ArrayList<Double> values, String classvalue)
key
- the RowKey of the row associated with this vector.values
- the double values of the vector.classvalue
- the class value.public DoubleVector(ArrayList<Double> values, String classvalue)
RowKey
.
values
- the double values of the vector.classvalue
- the class value.public DoubleVector(ModelContentRO predParams, String id) throws InvalidSettingsException
predParams
- from where to loadid
- used to identify this vector uniquely
InvalidSettingsException
- if a key is not foundMethod Detail |
---|
public RowKey getKey()
null
.public String getClassValue()
public double getValue(int i)
i
- the index of the value to return
public int getNumberValues()
public String toString()
toString
in class Object
public void saveTo(ModelContentWO predParams, String id)
predParams
- where to save the vectorid
- used to identify this vector uniquelypublic void setClassValue(String value)
DoubleVector
.
value
- the new class value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |