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

Function CalcTreeCost

library/cpp/par/distr_tree.cpp:32–34  ·  view source on GitHub ↗

total cost = send time + max ping time + max within group delivery time

Source from the content-addressed store, hash-verified

30
31 // total cost = send time + max ping time + max within group delivery time
32 static float CalcTreeCost(const TDistrTree& a, float sendTime) {
33 return (a.Children.ysize() - 1) * sendTime + a.MaxPing + a.Cost;
34 }
35
36 struct TDistrTreeCmpCost {
37 float SendTime;

Callers 2

operator()Method · 0.85
ConstructTreeFunction · 0.85

Calls 1

ysizeMethod · 0.45

Tested by

no test coverage detected