Skip to content

signal.Autocorrelation.Function.windowedNonPeriodicAutocorrelation

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

dsp-collection / signal/Autocorrelation / windowedNonPeriodicAutocorrelation

Function: windowedNonPeriodicAutocorrelation()

function windowedNonPeriodicAutocorrelation(
   x, 
   windowFunction, 
   normalize): Float64Array;

Defined in: signal/Autocorrelation.ts:104

Computes a windowed non-periodic autocorrelation of a sampled signal.

Only the right half side of the symetric autocorrelation result is computed. The effect of windowing is compensated by dividing the result of the autocorrelation by the autocorrelation of the window function.

This is a simple reference implementation without any optimization.

Parameters

x

ArrayLike<number>

The input signal.

windowFunction

WindowFunction

A window function to apply to 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