bmel:cv-of¶
Category: Array & Statistics · Returns: bmel:number
Signature
bmel:cv-of(array: bmel:array<number>)
Description¶
Returns the coefficient of variation (CV = stddev / mean) of an array, expressed as a ratio (not a percentage). CV quantifies relative dispersion independently of the measurement unit. Values below 0.1 indicate low variability, above 1.0 indicate very high variability. Returns null if the mean is zero.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
array | bmel:array<number> | The array of numeric values. |
Examples¶
Relative spread of latencies in a run
bmel:cv-of({createChatCompletion:Response Payload[]}.$.latency_ms)
Unstable runs (CV above 0.5)
bmel:cv-of({createChatCompletion:Response Payload[]}.$.latency_ms) > 0.5