|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.mds.DataPoint
public class DataPoint
Represents a data point consisting of a values for each dimension. The values
of each dimension can be accessed by get and set methods. The dimension
of the data point has to be set when creating an instance by calling the
constructor and can not be changed afterwards.
To create instances of DataPoint
see MDSManager
.
Constructor Summary | |
---|---|
DataPoint(int dimension)
Creates a new instance of DataPoint with given dimension. |
Method Summary | |
---|---|
double |
getElementAt(int index)
Returns the value of the DataPoint at the given index
or dimension respectively. |
void |
setElementAt(int index,
double value)
Sets the given value at the given index of the data point. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataPoint(int dimension) throws IllegalArgumentException
DataPoint
with given dimension.
The dimension can not be changed afterwards.
dimension
- The dimension to set. Only positive values greater than
zero are allowed here.
IllegalArgumentException
- If dimension is smaller or equals zero.Method Detail |
---|
public double getElementAt(int index) throws IndexOutOfBoundsException
DataPoint
at the given index
or dimension respectively.
index
- The index to return the value of the data point at.
IndexOutOfBoundsException
- If the index is less zero or greater
than the dimension of the data point.public void setElementAt(int index, double value) throws IndexOutOfBoundsException
index
- The index to set the value at.value
- The value to set at the specified index.
IndexOutOfBoundsException
- If the given index is less than zero
or greater than the data points dimension.public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |