Skip to content

bmel:medianOf

Category: Array & Statistics · Returns: bmel:number

bmel:medianOf(array: bmel:array<number>)

Description

Returns the median (50th percentile) of all numeric values in an array. For even-length arrays, the average of the two middle values is returned.

Arguments

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

Example

bmel:medianOf({batch:Response Payload}.$.latencies)

Back to BMEL Reference