Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
unittest
Function · 0.80
Calls
2
sqrt
Function · 0.85
ssqdif
Method · 0.45
Tested by
1
unittest
Function · 0.64