com.rapidminer.operator.performance
Class PerformanceVector.DefaultComparator

java.lang.Object
  extended by com.rapidminer.operator.performance.PerformanceVector.DefaultComparator
All Implemented Interfaces:
PerformanceComparator, java.io.Serializable, java.util.Comparator<PerformanceVector>
Enclosing class:
PerformanceVector

public static class PerformanceVector.DefaultComparator
extends java.lang.Object
implements PerformanceComparator

The default performance comparator compares the main criterion of two performance vectors. In case that the minimum description length (mdl) criterion is also calculated and have a weight > 0 the weighted sums of the main and the mdl criterion are compared.

See Also:
Serialized Form

Constructor Summary
PerformanceVector.DefaultComparator()
           
 
Method Summary
 int compare(PerformanceVector av1, PerformanceVector av2)
          Returns a negative value iff pv2 is better than pv1.
 
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

PerformanceVector.DefaultComparator

public PerformanceVector.DefaultComparator()
Method Detail

compare

public int compare(PerformanceVector av1,
                   PerformanceVector av2)
Description copied from interface: PerformanceComparator
Returns a negative value iff pv2 is better than pv1.

Specified by:
compare in interface PerformanceComparator
Specified by:
compare in interface java.util.Comparator<PerformanceVector>


Copyright © 2001-2009 by Rapid-I