de.aitools.dm.clusterlabeling.validation.external.measure
Class MatchAtN

java.lang.Object
  extended by de.aitools.dm.clusterlabeling.validation.external.PreferencedMeasure
      extended by de.aitools.dm.clusterlabeling.validation.external.measure.MatchAtN
All Implemented Interfaces:
ExternalMeasure

public class MatchAtN
extends PreferencedMeasure

1 if at least one of the top N cluster-labels matches the reference-label. 0 otherwise.

Version:
$Id: MatchAtN.java,v 1.1 2011/02/18 16:08:22 hoppe Exp $
Author:
johannes.kiesel(/\t)uni-weimar.de

Constructor Summary
MatchAtN(MeasurePreferences preferences, int n)
           
 
Method Summary
 double eval()
          This will evaluate depending on the concrete implementation.
 double evalAt(int n)
          This will evaluate depending on the concrete implementation.
 
Methods inherited from class de.aitools.dm.clusterlabeling.validation.external.PreferencedMeasure
evalClusterLabels, evalReferenceLabel, getClusterLabels, getReferenceLabel, setClusterLabels, setReferenceLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchAtN

public MatchAtN(MeasurePreferences preferences,
                int n)
Method Detail

eval

public double eval()
Description copied from interface: ExternalMeasure
This will evaluate depending on the concrete implementation.
Attention: The return-value may vary significantly in its meaning depending on the implementation. Higher values should suggest closer pairs.


evalAt

public double evalAt(int n)
Description copied from interface: ExternalMeasure
This will evaluate depending on the concrete implementation.
Attention: The return-value may vary significantly in its meaning depending on the implementation. Higher values should suggest closer pairs.