Skip to content

math.MathUtils.Function.triangularMovingAverageRef

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

dsp-collection / math/MathUtils / triangularMovingAverageRef

Function: triangularMovingAverageRef()

function triangularMovingAverageRef(a, windowWidth): Float64Array;

Defined in: math/MathUtils.ts:140

Reference implementation of the triangular moving average (TMA).

This a very slow reference implementation. It is used in the test module to verify the result of the optimized implementation.

Parameters

a

ArrayLike<number>

windowWidth

number

Returns

Float64Array

Clone this wiki locally