# 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`](/utils/api/type-aliases/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`](/utils/api/type-aliases/PurgeStabilizationCriteria) = `DEFAULT_PURGE_STABILIZATION_CRITERIA`

### window?

`number` = `3`

## Returns

[`PurgeStabilization`](/utils/api/type-aliases/PurgeStabilization) \| `undefined`
