org.carrot2.output.metrics
Class ClusteringMetricsCalculator

java.lang.Object
  extended by org.carrot2.core.ProcessingComponentBase
      extended by org.carrot2.output.metrics.ClusteringMetricsCalculator
All Implemented Interfaces:
IProcessingComponent

public class ClusteringMetricsCalculator
extends ProcessingComponentBase

Calculates a set of quality metrics for clusters.


Field Summary
 ContaminationMetric contamination
          Contamination metric.
 NormalizedMutualInformationMetric normalizedMutualInformation
          Normalized Mutual Information metric.
 PrecisionRecallMetric precisionRecall
          Precision and recall based metrics.
 
Constructor Summary
ClusteringMetricsCalculator()
           
 
Method Summary
 void process()
          Performs the processing required to fulfill the request.
 
Methods inherited from class org.carrot2.core.ProcessingComponentBase
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contamination

public ContaminationMetric contamination
Contamination metric.


precisionRecall

public PrecisionRecallMetric precisionRecall
Precision and recall based metrics.


normalizedMutualInformation

public NormalizedMutualInformationMetric normalizedMutualInformation
Normalized Mutual Information metric.

Constructor Detail

ClusteringMetricsCalculator

public ClusteringMetricsCalculator()
Method Detail

process

public void process()
             throws ProcessingException
Description copied from interface: IProcessingComponent
Performs the processing required to fulfill the request. This method is called once per request.

Specified by:
process in interface IProcessingComponent
Overrides:
process in class ProcessingComponentBase
Throws:
ProcessingException - when processing failed. If thrown, the IProcessingComponent.afterProcessing() method will be called and the component will be ready to accept further requests or to be disposed of. Finally, the exception will be rethrown from the controller method that caused the component to perform processing.


Copyright (c) Dawid Weiss, Stanislaw Osinski