edu.umass.cs.mallet.base.types
Class DenseFeatureVector

java.lang.Object
  extended byedu.umass.cs.mallet.base.types.DenseMatrix
      extended byedu.umass.cs.mallet.base.types.DenseVector
          extended byedu.umass.cs.mallet.base.types.DenseFeatureVector
All Implemented Interfaces:
ConstantMatrix, Matrix, java.io.Serializable, Vector

public class DenseFeatureVector
extends DenseVector

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.umass.cs.mallet.base.types.DenseMatrix
hasInfinite
 
Constructor Summary
DenseFeatureVector(Alphabet dict, double[] values)
           
DenseFeatureVector(FeatureVector sfv, int numColumns)
           
 
Method Summary
 boolean contains(java.lang.Object o)
           
 Alphabet getAlphabet()
           
 int location(java.lang.Object o)
           
 double value(java.lang.Object o)
           
 
Methods inherited from class edu.umass.cs.mallet.base.types.DenseVector
addTo, addTo, arrayCopyFrom, arrayCopyFrom, arrayCopyFrom, arrayCopyInto, arrayCopyTo, arrayCopyTo, cloneMatrix, columnPlusEquals, getDimensions, getNumDimensions, max, normalize, print, print, setValue, setValue, singleIndex, singleToIndices, sum, value, value
 
Methods inherited from class edu.umass.cs.mallet.base.types.DenseMatrix
absNorm, absNormalize, almostEquals, divideEquals, dotProduct, elementwiseDivideEquals, elementwiseDivideEquals, elementwiseTimesEquals, elementwiseTimesEquals, equalsPlus, incrementSingleValue, indexAtLocation, infinityNorm, infinityNorm, infinityNormalize, isNaN, location, numLocations, oneNorm, oneNormalize, plusEquals, plusEquals, plusEquals, plusEquals, plusEquals, print, set, setAll, setSingleValue, setValueAtLocation, setWithAddend, setWithFactor, singleSize, singleValue, substitute, timesEquals, timesEquals, twoNorm, twoNormalize, valueAtLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.umass.cs.mallet.base.types.ConstantMatrix
absNorm, dotProduct, indexAtLocation, infinityNorm, isNaN, location, numLocations, oneNorm, print, singleSize, singleValue, twoNorm, valueAtLocation
 

Constructor Detail

DenseFeatureVector

public DenseFeatureVector(Alphabet dict,
                          double[] values)

DenseFeatureVector

public DenseFeatureVector(FeatureVector sfv,
                          int numColumns)
Method Detail

getAlphabet

public Alphabet getAlphabet()

location

public int location(java.lang.Object o)

contains

public boolean contains(java.lang.Object o)

value

public double value(java.lang.Object o)