Skip to content

bmel:stddev-inline-of

Category: Math · Returns: bmel:number

Signature
bmel:stddev-inline-of(values...: bmel:number)

Description

Returns the population standard deviation of two or more inline numeric arguments. Computed as sqrt(mean(x²) - mean(x)²). Unlike bmel:stddev-of which operates on a typed array column, this function accepts individual scalar values directly — suitable for measuring spread across a fixed set of known numeric fields.

Variadic function

Accepts a variable number of arguments of the same type.

Arguments

Parameter Type Required Description
values ... bmel:number Two or more numeric values. Returns their population standard deviation.

Examples

Disagreement among three graders
bmel:stddev-inline-of({invokeAgent:Response Payload}.$.grades.a, {invokeAgent:Response Payload}.$.grades.b, {invokeAgent:Response Payload}.$.grades.c)
Spread between the latency stages
bmel:stddev-inline-of({invokeAgent:Response Payload}.$.timings.queue_ms, {invokeAgent:Response Payload}.$.timings.model_ms, {invokeAgent:Response Payload}.$.timings.tools_ms)

← Back to BMEL Reference