org.apache.mahout.classifier.bayes
Class ByScoreLabelResultComparator

java.lang.Object
  extended by org.apache.mahout.classifier.bayes.ByScoreLabelResultComparator
All Implemented Interfaces:
Serializable, Comparator<ClassifierResult>

public final class ByScoreLabelResultComparator
extends Object
implements Comparator<ClassifierResult>, Serializable

Compare two results of classification and return the lowest valued one

See Also:
Serialized Form

Constructor Summary
ByScoreLabelResultComparator()
           
 
Method Summary
 int compare(ClassifierResult cr1, ClassifierResult cr2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ByScoreLabelResultComparator

public ByScoreLabelResultComparator()
Method Detail

compare

public int compare(ClassifierResult cr1,
                   ClassifierResult cr2)
Specified by:
compare in interface Comparator<ClassifierResult>


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.