vec_math
Class Statistic.ResidualComparator
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
average
private double average
Statistic.ResidualComparator
public Statistic.ResidualComparator(double av)
compare
public int compare(Double r1,
Double r2)
- Specified by:
compare in interface Comparator<Double>