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

java.lang.Object
  extended byedu.umass.cs.mallet.base.types.SparseVector
      extended byedu.umass.cs.mallet.base.types.FeatureVector
          extended byedu.umass.cs.mallet.base.types.RankedFeatureVector
              extended byedu.umass.cs.mallet.base.types.PartiallyRankedFeatureVector
All Implemented Interfaces:
ConstantMatrix, java.io.Serializable, Vector

public class PartiallyRankedFeatureVector
extends RankedFeatureVector

See Also:
Serialized Form

Nested Class Summary
static interface PartiallyRankedFeatureVector.Factory
           
static interface PartiallyRankedFeatureVector.PerLabelFactory
           
 
Field Summary
 
Fields inherited from class edu.umass.cs.mallet.base.types.SparseVector
hasInfinite, indices, values
 
Constructor Summary
PartiallyRankedFeatureVector(Alphabet dict, AugmentableFeatureVector v)
           
PartiallyRankedFeatureVector(Alphabet dict, DenseVector v)
           
PartiallyRankedFeatureVector(Alphabet dict, double[] values)
           
PartiallyRankedFeatureVector(Alphabet dict, int[] indices, double[] values)
           
PartiallyRankedFeatureVector(Alphabet dict, SparseVector v)
           
 
Method Summary
 int numRanked()
           
protected  void setRankOrder(int extent, boolean reset)
           
 
Methods inherited from class edu.umass.cs.mallet.base.types.RankedFeatureVector
getIndexAtRank, getMaxValue, getMaxValuedIndex, getMaxValuedIndexIn, getMaxValuedObject, getMaxValuedObjectIn, getMaxValueIn, getObjectAtRank, getRank, getRank, getValueAtRank, printByRank, printByRank, set, setRankOrder, setRankOrder
 
Methods inherited from class edu.umass.cs.mallet.base.types.FeatureVector
cloneMatrix, cloneMatrixZeroed, contains, getAlphabet, getObjectIndices, location, toSimpFile, toString, toString, value
 
Methods inherited from class edu.umass.cs.mallet.base.types.SparseVector
absNorm, addTo, addTo, arrayCopyFrom, arrayCopyFrom, arrayCopyInto, dotProduct, dotProduct, dotProduct, dotProduct, extendedDotProduct, extendedDotProduct, getDimensions, getIndices, getNumDimensions, getValues, incrementValue, indexAtLocation, infinityNorm, isBinary, isNaN, location, makeBinary, makeNonBinary, map, numLocations, oneNorm, plusEqualsSparse, plusEqualsSparse, print, removeDuplicates, setAll, setValue, setValueAtLocation, singleIndex, singleSize, singleToIndices, singleValue, sortIndices, timesEquals, timesEqualsSparse, timesEqualsSparse, twoNorm, value, value, valueAtLocation, vectorAdd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartiallyRankedFeatureVector

public PartiallyRankedFeatureVector(Alphabet dict,
                                    int[] indices,
                                    double[] values)

PartiallyRankedFeatureVector

public PartiallyRankedFeatureVector(Alphabet dict,
                                    double[] values)

PartiallyRankedFeatureVector

public PartiallyRankedFeatureVector(Alphabet dict,
                                    DenseVector v)

PartiallyRankedFeatureVector

public PartiallyRankedFeatureVector(Alphabet dict,
                                    AugmentableFeatureVector v)

PartiallyRankedFeatureVector

public PartiallyRankedFeatureVector(Alphabet dict,
                                    SparseVector v)
Method Detail

numRanked

public int numRanked()

setRankOrder

protected void setRankOrder(int extent,
                            boolean reset)
Overrides:
setRankOrder in class RankedFeatureVector