Class FeatureNode

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

public class FeatureNode
extends java.lang.Object
implements Feature
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int index  
    double value  
  • Constructor Summary

    Constructors 
    Constructor Description
    FeatureNode​(int index, double value)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    int getIndex()  
    double getValue()  
    int hashCode()  
    void setValue​(double value)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • index

      public final int index
    • value

      public double value
  • Constructor Details

    • FeatureNode

      public FeatureNode​(int index, double value)
  • 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 java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object