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

Method getSigma

tutorials/common/tutorial/statistics.h:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 float getSigma() const
28 {
29 if (N == 0) return 0.0f;
30 else return (float) sqrt(max(0.0,v2/N - sqr(v/N)));
31 }
32
33 float getAvgSigma() const // standard deviation of average
34 {

Callers 2

renderBenchmarkLegacyFunction · 0.45
getSigmaMethod · 0.45

Calls 3

sqrtFunction · 0.50
maxFunction · 0.50
sqrFunction · 0.50

Tested by

no test coverage detected