Object -
streams
:
StdDev
The aggregator object to calculate standard deviation.
Methods
Updates the current standard deviation as the new values come into the aggregation.
Returns a copy of the StdDev
aggregator.
Return current state to be saved as a map of any
typed values.
Restores the saved state which is passed as a map of any
typed values.
Fields
- mean float 0.0
-
description
- stdDeviation float 0.0
-
description
- sumValue float 0.0
-
description
- count int 0
-
description
Updates the current standard deviation as the new values come into the aggregation.
Parameters
- value anydata
-
Value being added or removed from aggregation in order to calculate the new standard deviation.
- eventType EventType
-
Type of the incoming event
streams:CURRENT
,streams:EXPIRED
orstreams:RESET
.
-
Return Type
(anydata) Updated standard deviation.
Returns a copy of the StdDev
aggregator.
-
Return Type
(Aggregator) A
Aggregator
object which representsStdDev
aggregator.
Return current state to be saved as a map of any
typed values.
-
Return Type
(map) A map of
any
typed values.