Class DataNode
java.lang.Object
com.imsl.datamining.supportvectormachine.DataNode
Specifies a data node for a support vector machine.
A node has two elements, an index and a value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataNode
public DataNode()
-
-
Method Details
-
getIndex
public int getIndex()Returns the index of the node.- Returns:
- an
int, the index of the node
-
getValue
public double getValue()Returns the value of the node.- Returns:
- a
double, the value of the node
-
setIndex
public void setIndex(int idx) Sets the index of the node.- Parameters:
idx- anint, the index of the node
-
setValue
public void setValue(double val) Sets the value of the node.- Parameters:
val- adouble, the value of the node
-