edu.umass.cs.mallet.base.types
Interface Labeling

All Known Implementing Classes:
Label, LabelVector

public interface Labeling

A distribution over possible labels for an instance.


Method Summary
 void addTo(double[] values)
           
 void addTo(double[] values, double scale)
           
 int getBestIndex()
           
 Label getBestLabel()
           
 double getBestValue()
           
 LabelAlphabet getLabelAlphabet()
           
 Label getLabelAtRank(int rank)
           
 int getRank(int labelIndex)
           
 int getRank(Label label)
           
 double getValueAtRank(int rank)
           
 int indexAtLocation(int pos)
           
 Label labelAtLocation(int pos)
           
 int numLocations()
           
 LabelVector toLabelVector()
           
 double value(int labelIndex)
           
 double value(Label label)
           
 double valueAtLocation(int pos)
           
 

Method Detail

getLabelAlphabet

public LabelAlphabet getLabelAlphabet()

getBestLabel

public Label getBestLabel()

getBestValue

public double getBestValue()

getBestIndex

public int getBestIndex()

value

public double value(Label label)

value

public double value(int labelIndex)

getRank

public int getRank(Label label)

getRank

public int getRank(int labelIndex)

getLabelAtRank

public Label getLabelAtRank(int rank)

getValueAtRank

public double getValueAtRank(int rank)

addTo

public void addTo(double[] values)

addTo

public void addTo(double[] values,
                  double scale)

numLocations

public int numLocations()

indexAtLocation

public int indexAtLocation(int pos)

labelAtLocation

public Label labelAtLocation(int pos)

valueAtLocation

public double valueAtLocation(int pos)

toLabelVector

public LabelVector toLabelVector()