Method
compare
(DataPointPair<Double> o1, DataPointPair<Double> o2)
Source from the content-addressed store, hash-verified
| 867 | Comparator<DataPointPair<Double>> dppDoubleSorter = new Comparator<DataPointPair<Double>>() |
| 868 | { |
| 869 | @Override |
| 870 | public int compare(DataPointPair<Double> o1, DataPointPair<Double> o2) |
| 871 | { |
| 872 | return Double.compare(o1.getVector().get(numAttri), o2.getVector().get(numAttri)); |
| 873 | } |
| 874 | }; |
| 875 | Collections.sort(DPs, dppDoubleSorter);//this will put nans to the right |
| 876 | |
Tested by
no test coverage detected