Skip to content

signal.Autocorrelation.Function.nonPeriodicAutocorrelationSingle

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

dsp-collection / signal/Autocorrelation / nonPeriodicAutocorrelationSingle

Function: nonPeriodicAutocorrelationSingle()

function nonPeriodicAutocorrelationSingle(
   x, 
   distance, 
   compensate): number;

Defined in: signal/Autocorrelation.ts:28

Computes the non-periodic autocorrelation for a single positive integer distance.

Parameters

x

ArrayLike<number>

The input signal.

distance

number

A positive integer specifying the correlation distance.

compensate

boolean

true to compensate for the narrowness of the overlap region.

Returns

number

The autocorrelation amount at the specified distance.

Clone this wiki locally