Skip to content

signal.Autocorrelation.Function.nonPeriodicAutocorrelation

Christian d'Heureuse edited this page Jun 7, 2026 · 2 revisions

dsp-collection / signal/Autocorrelation / nonPeriodicAutocorrelation

Function: nonPeriodicAutocorrelation()

function nonPeriodicAutocorrelation(x, normalize): Float64Array;

Defined in: signal/Autocorrelation.ts:75

Computes the non-periodic autocorrelation of a sampled signal.

Only the right half side of the symetric autocorrelation result is computed.

This is a simple reference implementation without any optimization.

Parameters

x

ArrayLike<number>

The input signal.

normalize

boolean

true to divide the computed values by the value for distance 0.

Returns

Float64Array

The non-periodic autocorrelation of the input signal.

Clone this wiki locally