Skip to content

bmel:outlierCountOf

Category: Array & Statistics · Returns: bmel:integer

bmel:outlierCountOf(array: bmel:array<number>, threshold: bmel:number)

Description

Returns the number of elements in an array that deviate from the mean by more than (threshold x stddev). Uses the z-score method. Typical threshold values: 2.0 (95% range), 2.5 (98.8%), 3.0 (three-sigma rule, 99.7%).

Arguments

Parameter Type Required Description
array bmel:array<number> The array of numeric values to scan for outliers.
threshold bmel:number Number of standard deviations from the mean beyond which a value is considered an outlier.

Example

bmel:outlierCountOf({batch:Response Payload}.$.latencies, 2.5)

Back to BMEL Reference