MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / pop_stdev

Method pop_stdev

libraries/Statistic/Statistic.h:208–212  ·  view source on GitHub ↗

Population standard deviation

Source from the content-addressed store, hash-verified

206
207 // Population standard deviation
208 value_type pop_stdev() const {
209 if (!_useStdDev) return NaN;
210 if (_cnt == 0) return NaN; // prevent DIV0 error
211 return std::sqrt( _extra.ssqdif() / _cnt);
212 }
213
214
215 value_type unbiased_stdev() const {

Callers 1

unittestFunction · 0.80

Calls 2

sqrtFunction · 0.85
ssqdifMethod · 0.45

Tested by 1

unittestFunction · 0.64