This page explains how to use the series_abs function in APL.
series_abs
function transforms all values in a numeric dynamic array (series) into their absolute values. This means that it converts negative values to their positive equivalents while leaving non-negative values unchanged.
You can use series_abs
when you want to normalize data and remove the effect of directionality. For example, it’s useful in time-series scenarios where you want to analyze the magnitude of changes regardless of whether they’re positive or negative. Typical applications include error analysis, performance monitoring, and anomaly detection.
Splunk SPL users
eval
function and the abs()
expression. In APL, you apply series_abs
to an array column to calculate absolute values for all elements in one step.ANSI SQL users
ABS()
scalar function, but this only applies to single values, not arrays. In APL, series_abs
applies the operation to every element in a dynamic array, which makes it convenient for series analysis.Parameter | Type | Description |
---|---|---|
array | dynamic | A dynamic array of numeric values. |
series_abs
to analyze request durations by focusing on their magnitude, regardless of whether values are represented as positive or negative deviations.Queryid | durations | abs_durations |
---|---|---|
u123 | [-50, 30, -10, 20] | [50, 30, 10, 20] |
u456 | [5, -7, -3, 9] | [5, 7, 3, 9] |