bmel:avg¶
Category: Array & Statistics · Returns: bmel:number
Signature
bmel:avg(array: bmel:array<number>)
Description¶
Returns the arithmetic mean of all numeric values in an array.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
array | bmel:array<number> | The array of numeric values to average. |
Examples¶
Average latency of the LLM calls of a run
bmel:avg({createChatCompletion:Response Payload[]}.$.latency_ms)
Average price of the items of an order
bmel:avg({getOrder:Response Payload}.$.items.price)