# Measures of Mean (Mean) (G Dataflow)

Version:

Computes the mean of the values in a sequence.

## x

Input sequence.

This input can be an array of double-precision, floating-point numbers or an array of complex double-precision, floating-point numbers.

If x is empty, mean is NaN.

## error in

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

Default: No error

## mean

Mean, or average, of the values in the input sequence.

## error out

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

## Algorithm for Computing the Mean in a Sequence

The node calculates mean using the following equation.

$\mu =\frac{1}{n}\underset{i=0}{\overset{n-1}{\sum }}{x}_{i}$

where $\mu$ is mean and n is the number of elements in x.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported