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 (default 0.0)
-
description
- stdDeviation float (default 0.0)
-
description
- sumValue float (default 0.0)
-
description
- count int (default 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:EXPIREDorstreams:RESET.
-
Return Type
(anydata) Updated standard deviation.
Returns a copy of the StdDev aggregator.
-
Return Type
(Aggregator) A
Aggregatorobject which representsStdDevaggregator.
Return current state to be saved as a map of any typed values.
-
Return Type
(map) A map of
anytyped values.