# RMS (G Dataflow)

Version:

Computes the root mean square (rms) of a sequence.

## x

The real input sequence.

If x is empty, rms value is NaN.

This input accepts the following data types:

• 1D array of double-precision, floating-point numbers
• 1D array of complex double-precision, floating-point numbers

## error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error

## rms value

Root mean square computed from the input sequence.

## error out

Error information. The node produces this output according to standard error behavior.

## Algorithm for Computing the RMS

The node calculates rms value using the following equation:

${\mathrm{\Psi }}_{x}=\sqrt{\frac{1}{n}\underset{i=1}{\overset{n-1}{\sum }}{|{x}_{i}|}^{2}}$

where ${\mathrm{\Psi }}_{x}$ is rms value and n is the number of elements in x.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported