Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Calc
Method · 0.45
Calc
Method · 0.45
Calls
5
IsSorted
Function · 0.85
Sort
Function · 0.50
move
Function · 0.50
begin
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected