compute_correlogram

Summary: Computes the correlogram (autocorrelation function) of an input array over multiple lags. The function calculates autocorrelation values for lag values ranging from 0 to n/5, where n is the length of the input array.

pure
double[]
compute_correlogram
(
double[] array_IN
)

Parameters

array_IN double[]

Input array containing numerical values.

Return Value

Type: double[]

result: An array containing autocorrelation values for different lag values (τ), ranging from 0 to n/5.

Notes: - The function iterates over lag values from 0 to n/5, meaning only a portion of the total possible lags is considered. - The output array provides insight into how the signal correlates with itself over increasing lags. - The function uses compute_autocorrelation for each lag value. - If n is too small, the computed correlogram may not be meaningful. - Useful for identifying periodic patterns and dependencies in time-series data.