Class FeatureVector

  • All Implemented Interfaces:
    Serializable, Iterable, Collection, List

    public final class FeatureVector
    extends de.julielab.gnu.trove.TLinkedList
    A FeatureVector that can hold up to two FeatureVector instances inside it, which allows for a very quick concatenation operation.

    Also, in order to avoid copies, the second of these internal FeatureVector instances can be negated, so that it has the effect of subtracting any values rather than adding them.

    Created: Sat Nov 10 15:25:10 2001

    Version:
    $Id: FeatureVector.java 90 2007-01-17 07:42:20Z jasonbaldridge $
    Author:
    Jason Baldridge
    See Also:
    Feature, Serialized Form
    • Method Detail

      • add

        public void add​(int index,
                        double value)
      • keys

        public int[] keys()
      • getScore

        public final double getScore​(double[] parameters)
      • update

        public void update​(double[] parameters,
                           double[] total,
                           double alpha_k,
                           double upd)