This page explains how to use the series_acos function in APL.
series_acos
function computes the arc cosine (inverse cosine) for each numeric element in a dynamic array. The output is another dynamic array where each value is transformed by the arc cosine function.
You use series_acos
when you want to apply trigonometric analysis over time series or other numeric array data. This is useful in cases where your data is stored as arrays, such as time-binned metrics, periodic request patterns, or wave-like behaviors in telemetry data.
Splunk SPL users
acos
function for array values. You typically need to expand multivalue fields into individual events, apply the acos()
function to each event, and then optionally collect the results back into an array. In APL, series_acos
applies the function element-wise to a dynamic array in one step.ANSI SQL users
ACOS()
scalar function for individual numeric values but does not support arrays as a native type. To work with multiple values, you usually normalize data into rows and apply ACOS()
row by row. In APL, series_acos
lets you apply the function directly to arrays without unnesting them.Parameter | Type | Description |
---|---|---|
array | dynamic | A dynamic array of numeric values where each element is between -1 and 1. |
[0, π]
.
series_acos
to normalized values, you reveal inverse cosine transformations that are useful in signal-style analysis of request patterns.Queryid | durations | normalized |
---|---|---|
U123 | [100, 200, 300, 400] | [1.47, 1.37, 1.27, 1.16] |