MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / compare

Method compare

JSAT/src/jsat/classifiers/trees/DecisionStump.java:869–873  ·  view source on GitHub ↗
(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

Callers 2

compareToMethod · 0.45
compareToMethod · 0.45

Calls 2

getMethod · 0.45
getVectorMethod · 0.45

Tested by

no test coverage detected