MCPcopy Create free account
hub / github.com/catboost/catboost / Calc

Method Calc

library/cpp/histogram/simple/histogram.h:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 THistogram<T> Calc() {
58 if (!IsSorted(Values_.begin(), Values_.end())) {
59 Sort(Values_.begin(), Values_.end());
60 }
61 return THistogram<T>(std::move(Values_));
62 }
63
64 private:
65 TVector<T> Values_;

Callers 2

CalcMethod · 0.45
CalcMethod · 0.45

Calls 5

IsSortedFunction · 0.85
SortFunction · 0.50
moveFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected