public class DoubleVector extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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 uniquelyInvalidSettingsException
- if a key is not foundpublic RowKey getKey()
null
.public String getClassValue()
public double getValue(int i)
i
- the index of the value to returnpublic int getNumberValues()
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.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.