Skip to content

bmel:iqr-of

Category: Array & Statistics · Returns: bmel:number

Signature
bmel:iqr-of(array: bmel:array<number>)

Description

Returns the interquartile range (IQR = Q3 - Q1) of an array. A robust measure of statistical dispersion that is resistant to outliers. Computed as bmel:percentile-of(array, 75) - bmel:percentile-of(array, 25).

Arguments

Parameter Type Required Description
array bmel:array<number> The array of numeric values.

Examples

Interquartile range of the latencies of a run
bmel:iqr-of({createChatCompletion:Response Payload[]}.$.latency_ms)
IQR of item prices
bmel:iqr-of({getOrder:Response Payload}.$.items.price)

← Back to BMEL Reference