vec_math
Class Statistic.ResidualComparator

java.lang.Object
  extended by vec_math.Statistic.ResidualComparator
All Implemented Interfaces:
Comparator<Double>
Enclosing class:
Statistic

public static class Statistic.ResidualComparator
extends Object
implements Comparator<Double>

Sorts values according to their absolute residual from the given average.


Field Summary
private  double average
           
 
Constructor Summary
Statistic.ResidualComparator(double av)
           
 
Method Summary
 int compare(Double r1, Double r2)
           
 
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
 

Field Detail

average

private double average
Constructor Detail

Statistic.ResidualComparator

public Statistic.ResidualComparator(double av)
Method Detail

compare

public int compare(Double r1,
                   Double r2)
Specified by:
compare in interface Comparator<Double>