es.nlp.uned.weps.evaluation
Class ClusteringEvaluation

java.lang.Object
  extended by es.nlp.uned.weps.evaluation.ClusteringEvaluation

public class ClusteringEvaluation
extends java.lang.Object

This class holds the results for different clustering evaluation measures using a key and an answer clusterings.

Author:
javart

Constructor Summary
ClusteringEvaluation()
           
ClusteringEvaluation(Clustering key, Clustering answer)
          The Constructor.
 
Method Summary
 Clustering getAnswer()
          Gets the answer.
 Clustering getKey()
          Gets the key.
 java.util.HashMap<java.lang.String,java.lang.Double> getMeasure2result()
          Gets the measure2result.
 java.lang.String[] getMeasures()
          Gets the measures.
 double getScore(java.lang.String measure_id)
          Gets the score.
 double getScore(java.lang.String measure_id, int round_precision)
          Gets the score.
 void setScore(java.lang.String measure_id, double value)
          Sets the score.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusteringEvaluation

public ClusteringEvaluation(Clustering key,
                            Clustering answer)
The Constructor.

Parameters:
key - the key
answer - the answer

ClusteringEvaluation

public ClusteringEvaluation()
Method Detail

getAnswer

public Clustering getAnswer()
Gets the answer.

Returns:
the answer

getKey

public Clustering getKey()
Gets the key.

Returns:
the key

getMeasure2result

public java.util.HashMap<java.lang.String,java.lang.Double> getMeasure2result()
Gets the measure2result.

Returns:
the measure2result

getMeasures

public java.lang.String[] getMeasures()
Gets the measures.

Returns:
a list of metric IDs evaluated for this clustering problem

setScore

public void setScore(java.lang.String measure_id,
                     double value)
Sets the score.

Parameters:
measure_id - the measure_id
value - the value

getScore

public double getScore(java.lang.String measure_id)
Gets the score.

Parameters:
measure_id - the measure_id
Returns:
the score

getScore

public double getScore(java.lang.String measure_id,
                       int round_precision)
Gets the score.

Parameters:
measure_id - the measure_id
round_precision - the round_precision
Returns:
the score