cc.mallet.types
Interface Labeling
-
- All Superinterfaces:
- AlphabetCarrying
- All Known Implementing Classes:
- Label, LabelVector
public interface Labeling extends AlphabetCarrying
A distribution over possible labels for an instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddTo(double[] values)voidaddTo(double[] values, double scale)intgetBestIndex()LabelgetBestLabel()doublegetBestValue()LabelAlphabetgetLabelAlphabet()LabelgetLabelAtRank(int rank)intgetRank(int labelIndex)intgetRank(Label label)doublegetValueAtRank(int rank)intindexAtLocation(int pos)LabellabelAtLocation(int pos)intnumLocations()LabelVectortoLabelVector()doublevalue(int labelIndex)doublevalue(Label label)doublevalueAtLocation(int pos)-
Methods inherited from interface cc.mallet.types.AlphabetCarrying
getAlphabet, getAlphabets
-
-
-
-
Method Detail
-
getLabelAlphabet
LabelAlphabet getLabelAlphabet()
-
getBestLabel
Label getBestLabel()
-
getBestValue
double getBestValue()
-
getBestIndex
int getBestIndex()
-
value
double value(Label label)
-
value
double value(int labelIndex)
-
getRank
int getRank(Label label)
-
getRank
int getRank(int labelIndex)
-
getLabelAtRank
Label getLabelAtRank(int rank)
-
getValueAtRank
double getValueAtRank(int rank)
-
addTo
void addTo(double[] values)
-
addTo
void addTo(double[] values, double scale)
-
numLocations
int numLocations()
-
indexAtLocation
int indexAtLocation(int pos)
-
labelAtLocation
Label labelAtLocation(int pos)
-
valueAtLocation
double valueAtLocation(int pos)
-
toLabelVector
LabelVector toLabelVector()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG