Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ average
Method
average
libraries/Statistic/Statistic.h:192–195 ·
view source on GitHub ↗
NAN if count == zero
Source
from the content-addressed store, hash-verified
190
191
// NAN if count == zero
192
value_type average() const {
193
if (_cnt == 0) return NaN; // prevent DIV0 error
194
return _sum / _cnt;
195
}
196
197
198
// useStdDev must be true to use next three
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36