DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > MOVRMS

 

MOVRMS

Purpose:

Calculates the moving RMS of a series.

Syntax:

MOVRMS(series, N, rampflag)

series

-

A series or table.

N

-

An integer, the number of points to calculate the RMS as the series is processed.

rampflag

-

Optional. An integer, endpoint averaging flag.

0:

down

1:

up (default)

Returns:

A series or table.

Example:

W1: {1, 2, 4, 7}

W2: movrms(W1, 3)

 

returns the series {1, 1.581, 2.646, 4.796, 5.701, 7}

 

W3: movrms(W1, length(W1))

 

W3[length(w1)] == rms(w1) == 4.183

Remarks:

MOVRMS computes the moving discrete root mean square value. For each section of length N, the RMS value is defined as:

 

 

For speed, this routine uses the built-in function MOVAVG.

 

See LINRMS to compute a phase-less moving RMS.

See Also:

BLOCKRMS

COLRMS

LINRMS

MOVAVG

MOVSTD

RMS