This page explains how to use the series_asin function in APL.
series_asin
function computes the arc sine (inverse sine) of each numeric element in a dynamic array. It returns a new array of the same length, where each element is the arc sine of the corresponding input element. The function is useful when you want to transform time series data or arrays of numeric values into angular measurements. This can help in advanced mathematical modeling, anomaly detection, and when working with normalized data that represents sine values.
You use series_asin
when you need to invert sine transformations stored in array form, for example, to reconstruct angular information from periodic signals or normalize log and trace metrics for statistical or geometric analysis.
Splunk SPL users
series_asin
that operates over arrays. Instead, SPL typically requires you to apply asin()
to individual fields or use mvmap
to apply the function to multivalue fields. In APL, series_asin
simplifies this by applying the operation to each element of a dynamic array in one step.ANSI SQL users
ASIN()
for scalar values but do not include native array-processing functions. You would need to unnest an array into rows, apply ASIN()
, and then aggregate the results back into an array. APL’s series_asin
eliminates this boilerplate by letting you compute the arc sine across the entire array at once.Parameter | Type | Description |
---|---|---|
array | dynamic | A dynamic array of numeric values. Each element should be between -1 and 1 , the valid domain of the arc sine function. |
series_asin
to transform them into angular values for further statistical analysis.Queryid | durations | normalized | angles |
---|---|---|---|
A12 | [100, 200, 300, 400, 500] | [0.1, 0.2, 0.3, 0.4, 0.5] | [0.100, 0.201, 0.305, 0.412, 0.524] |
series_asin
to transform values into angles.