Class FeatureNode

java.lang.Object
de.bwaldvogel.liblinear.FeatureNode
All Implemented Interfaces:
Feature

public class FeatureNode extends Object implements Feature
  • Field Details

    • index

      public final int index
    • value

      public double value
  • Constructor Details

    • FeatureNode

      public FeatureNode(int index, double value)
    • FeatureNode

      FeatureNode(int index, double value, boolean validateIndex)
  • Method Details

    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface Feature
      Since:
      1.9
    • getValue

      public double getValue()
      Specified by:
      getValue in interface Feature
      Since:
      1.9
    • setValue

      public void setValue(double value)
      Specified by:
      setValue in interface Feature
      Since:
      1.9
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object