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
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.
Restores the saved state which is passed as a map of any
typed values.
Parameters
- state map
-
A map of typed
any
values. This map contains the values to be restored from the persisted data.