public class RankedFeatureVector extends FeatureVector
| Modifier and Type | Class and Description |
|---|---|
static interface |
RankedFeatureVector.Factory |
static interface |
RankedFeatureVector.PerLabelFactory |
hasInfinite, indices, values| Constructor and Description |
|---|
RankedFeatureVector(Alphabet dict,
AugmentableFeatureVector v) |
RankedFeatureVector(Alphabet dict,
DenseVector v) |
RankedFeatureVector(Alphabet dict,
double[] values) |
RankedFeatureVector(Alphabet dict,
int[] indices,
double[] values) |
RankedFeatureVector(Alphabet dict,
SparseVector v) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndexAtRank(int rank) |
double |
getMaxValue() |
int |
getMaxValuedIndex() |
int |
getMaxValuedIndexIn(FeatureSelection fs) |
Object |
getMaxValuedObject() |
Object |
getMaxValuedObjectIn(FeatureSelection fs) |
double |
getMaxValueIn(FeatureSelection fs) |
Object |
getObjectAtRank(int rank) |
int |
getRank(int index) |
int |
getRank(Object o) |
double |
getValueAtRank(int rank) |
void |
printByRank(OutputStream out)
Prints a human-readable version of this vector, with features listed in ranked order.
|
void |
printByRank(PrintWriter out)
Prints a human-readable version of this vector, with features listed in ranked order.
|
void |
set(int i,
double v) |
protected void |
setRankOrder() |
protected void |
setRankOrder(int extent) |
protected void |
setRankOrder(int extent,
boolean reset) |
cloneMatrix, cloneMatrixZeroed, contains, getAlphabet, getObjectIndices, location, toSimpFile, toString, toString, valueabsNorm, 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, vectorAddpublic RankedFeatureVector(Alphabet dict, int[] indices, double[] values)
public RankedFeatureVector(Alphabet dict, double[] values)
public RankedFeatureVector(Alphabet dict, DenseVector v)
public RankedFeatureVector(Alphabet dict, AugmentableFeatureVector v)
public RankedFeatureVector(Alphabet dict, SparseVector v)
protected void setRankOrder()
protected void setRankOrder(int extent,
boolean reset)
protected void setRankOrder(int extent)
public int getMaxValuedIndex()
public Object getMaxValuedObject()
public int getMaxValuedIndexIn(FeatureSelection fs)
public Object getMaxValuedObjectIn(FeatureSelection fs)
public double getMaxValue()
public double getMaxValueIn(FeatureSelection fs)
public int getIndexAtRank(int rank)
public Object getObjectAtRank(int rank)
public double getValueAtRank(int rank)
public void printByRank(OutputStream out)
out - Stream to write topublic void printByRank(PrintWriter out)
out - Writer to write topublic int getRank(Object o)
public int getRank(int index)
public void set(int i,
double v)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.