MCPcopy Create free account
hub / github.com/RenderKit/embree / getAvg

Method getAvg

tutorials/common/tutorial/statistics.h:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 float getMax() const { return vmax; }
41
42 float getAvg() const
43 {
44 if (N == 0) return 0.0f;
45 else return float(v/N);
46 }
47
48 private:
49 double v; // sum of all values

Callers 5

updateDatabaseMethod · 0.45
executeMethod · 0.45
plotMethod · 0.45
renderBenchmarkLegacyFunction · 0.45
getAvgMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected