Class Feature

  • All Implemented Interfaces:
    de.julielab.gnu.trove.TLinkable, java.io.Serializable

    public final class Feature
    extends de.julielab.gnu.trove.TLinkableAdaptor
    A simple class holding a feature index and value that can be used in a TLinkedList.

    Created: Sat Nov 10 15:25:10 2001

    Version:
    $Id: TLinkedList.java,v 1.5 2005/03/26 17:52:56 ericdf Exp $
    Author:
    Jason Baldridge
    See Also:
    FeatureVector, Serialized Form
    • Field Summary

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

      Constructors 
      Constructor Description
      Feature​(int i, double v)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Feature clone()  
      Feature negation()  
      java.lang.String toString()  
      • Methods inherited from class de.julielab.gnu.trove.TLinkableAdaptor

        getNext, getPrevious, setNext, setPrevious
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • index

        public int index
      • value

        public double value
    • Constructor Detail

      • Feature

        public Feature​(int i,
                       double v)
    • Method Detail

      • clone

        public final Feature clone()
        Overrides:
        clone in class java.lang.Object
      • negation

        public final Feature negation()
      • toString

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