public class ClusterLabel extends Label implements Comparable<ClusterLabel>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private double |
sortingValue |
Constructor and Description |
---|
ClusterLabel(Label l,
double sortingValue) |
ClusterLabel(String name) |
ClusterLabel(String name,
double value) |
ClusterLabel(String name,
double value,
double qe) |
ClusterLabel(String name,
double value,
double qe,
double sortingValue)
Constructs a ClusterLabel object with the given arguments.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ClusterLabel c) |
double |
getSortingValue() |
void |
setSortingValue(double d) |
getBestContext, getName, getNameAndScaledValue, getQe, getValue, sortByName, sortByQe, sortByQeValue, sortByValue, sortByValueQe
private static final long serialVersionUID
private double sortingValue
public ClusterLabel(Label l, double sortingValue)
public ClusterLabel(String name)
public ClusterLabel(String name, double value)
public ClusterLabel(String name, double value, double qe)
public ClusterLabel(String name, double value, double qe, double sortingValue)
name
- the name of the label.value
- the label value.qe
- the quantization error of the label.sortingValue
- the value determining the order of labelspublic int compareTo(ClusterLabel c)
compareTo
in interface Comparable<ClusterLabel>
public double getSortingValue()
public void setSortingValue(double d)