public class LabelVector extends RankedFeatureVector implements Labeling
RankedFeatureVector.Factory, RankedFeatureVector.PerLabelFactoryhasInfinite, indices, values| Constructor and Description |
|---|
LabelVector(Label[] labels,
double[] values) |
LabelVector(LabelAlphabet dict,
double[] values) |
LabelVector(LabelAlphabet dict,
int[] features,
double[] values) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBestIndex() |
Label |
getBestLabel() |
double |
getBestValue() |
LabelAlphabet |
getLabelAlphabet() |
Label |
getLabelAtRank(int rank) |
int |
getRank(int labelIndex) |
int |
getRank(Label label) |
double |
getValueAtRank(int rank) |
Label |
labelAtLocation(int loc) |
LabelVector |
toLabelVector() |
double |
value(Label label) |
getIndexAtRank, getMaxValue, getMaxValuedIndex, getMaxValuedIndexIn, getMaxValuedObject, getMaxValuedObjectIn, getMaxValueIn, getObjectAtRank, getRank, printByRank, printByRank, set, setRankOrder, setRankOrder, setRankOrdercloneMatrix, 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, vectorAddclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddTo, addTo, indexAtLocation, numLocations, value, valueAtLocationpublic LabelVector(LabelAlphabet dict, int[] features, double[] values)
public LabelVector(Label[] labels, double[] values)
public LabelVector(LabelAlphabet dict, double[] values)
public final Label labelAtLocation(int loc)
labelAtLocation in interface Labelingpublic LabelAlphabet getLabelAlphabet()
getLabelAlphabet in interface Labelingpublic int getBestIndex()
getBestIndex in interface Labelingpublic Label getBestLabel()
getBestLabel in interface Labelingpublic double getBestValue()
getBestValue in interface Labelingpublic int getRank(int labelIndex)
getRank in interface LabelinggetRank in class RankedFeatureVectorpublic Label getLabelAtRank(int rank)
getLabelAtRank in interface Labelingpublic double getValueAtRank(int rank)
getValueAtRank in interface LabelinggetValueAtRank in class RankedFeatureVectorpublic LabelVector toLabelVector()
toLabelVector in interface LabelingCopyright © 2019 JULIE Lab, Germany. All rights reserved.