MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Sample

Method Sample

engine/Poseidon/Network/NetworkServerSimulate.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 s_simulateSmokeSuccessReported = false;
127}
128
129void CalculateMinMaxAvg::Sample(float value, float weight)
130{
131 saturateMin(_min, value);
132 saturateMax(_max, value);
133 _sum += value * weight;
134 _weight += weight;
135}
136
137void CalculateMinMaxAvg::Reset()

Callers 2

EstimateBandwidthMethod · 0.45
SendMessagesMethod · 0.45

Calls 2

saturateMinFunction · 0.85
saturateMaxFunction · 0.85

Tested by

no test coverage detected