java.lang.Object
com.imsl.datamining.supportvectormachine.DataNode

public class DataNode extends Object
Specifies a data node for a support vector machine.

A node has two elements, an index and a value.

  • 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 - an int, the index of the node
    • setValue

      public void setValue(double val)
      Sets the value of the node.
      Parameters:
      val - a double, the value of the node