es.nlp.uned.weps.evaluation.measures
Class Pairs
java.lang.Object
es.nlp.uned.weps.evaluation.measures.Measure
es.nlp.uned.weps.evaluation.measures.Pairs
public class Pairs
- extends Measure
Constructor Summary |
Pairs(int metricType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RAND_STATISTIC
public static final int RAND_STATISTIC
- The Constant RAND_STATISTIC.
- See Also:
- Constant Field Values
JACCARD_COEFFICIENT
public static final int JACCARD_COEFFICIENT
- The Constant JACCARD_COEFFICIENT.
- See Also:
- Constant Field Values
FOLKES_AND_MALLOWS
public static final int FOLKES_AND_MALLOWS
- The Constant FOLKES_AND_MALLOWS.
- See Also:
- Constant Field Values
ID
public java.lang.String ID
Pairs
public Pairs(int metricType)
getScore
public double getScore(Clustering answer,
Clustering key)
- Calculates a pairs based measure.
- Specified by:
getScore
in class Measure
- Parameters:
key
- the key clusteringmetricType
- the type of pair based metric (RAND_STATISTIC, JACCARD_COEFFICIENT or FOLKES_AND_MALLOWS).answer
- the answer clustering
- Returns:
- the result
getID
public java.lang.String getID()
- Overrides:
getID
in class Measure