@welldot/utils
getPurgeStabilization
Derives purge stabilization from purge.readings. Readings are grouped by parameterKey and ordered by elapsed; a parameter is stabilized when its last window (default 3) readings step within its criteria. Parameters without criteria are ignored. Returns undefined without readings.
getPurgeStabilization(
purge,criteria?,window?):PurgeStabilization|undefined
Derives purge stabilization from purge.readings. Readings are grouped by
parameterKey and ordered by elapsed; a parameter is stabilized when its
last window (default 3) readings step within its criteria. Parameters
without criteria are ignored. Returns undefined without readings.
Parameters
purge
Purge | undefined
criteria?
PurgeStabilizationCriteria = DEFAULT_PURGE_STABILIZATION_CRITERIA
window?
number = 3
Returns
PurgeStabilization | undefined