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

Method unbiased_stdev

libraries/Statistic/Statistic.h:215–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215 value_type unbiased_stdev() const {
216 if (!_useStdDev) return NaN;
217 if (_cnt < 2) return NaN; // prevent DIV0 error
218 return std::sqrt( _extra.ssqdif() / (_cnt - 1));
219 }
220
221
222 // deprecated methods:

Callers 1

unittestFunction · 0.80

Calls 2

sqrtFunction · 0.85
ssqdifMethod · 0.45

Tested by 1

unittestFunction · 0.64