public class Label extends Object implements Labeling, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Label() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(double[] weights) |
void |
addTo(double[] weights,
double scale) |
int |
compareTo(Object o) |
boolean |
equals(Object l) |
Alphabet |
getAlphabet() |
int |
getBestIndex() |
Label |
getBestLabel() |
double |
getBestValue() |
Object |
getEntry() |
int |
getIndex() |
LabelAlphabet |
getLabelAlphabet() |
Label |
getLabelAtRank(int rank) |
int |
getRank(int labelIndex) |
int |
getRank(Label label) |
double |
getValueAtRank(int rank) |
int |
indexAtLocation(int loc) |
Label |
labelAtLocation(int loc) |
int |
numLocations() |
LabelVector |
toLabelVector() |
String |
toString() |
double |
value(int labelIndex) |
double |
value(Label label) |
double |
valueAtLocation(int loc) |
public LabelAlphabet getLabelAlphabet()
getLabelAlphabet in interface Labelingpublic int getIndex()
public Alphabet getAlphabet()
public Object getEntry()
public int compareTo(Object o)
public Label getBestLabel()
getBestLabel in interface Labelingpublic int getBestIndex()
getBestIndex in interface Labelingpublic double getBestValue()
getBestValue in interface Labelingpublic Label getLabelAtRank(int rank)
getLabelAtRank in interface Labelingpublic double getValueAtRank(int rank)
getValueAtRank in interface Labelingpublic int numLocations()
numLocations in interface Labelingpublic Label labelAtLocation(int loc)
labelAtLocation in interface Labelingpublic double valueAtLocation(int loc)
valueAtLocation in interface Labelingpublic int indexAtLocation(int loc)
indexAtLocation in interface Labelingpublic LabelVector toLabelVector()
toLabelVector in interface LabelingCopyright © 2019 JULIE Lab, Germany. All rights reserved.