Computes the mean of the values in the input sequence X.

![]() |
X is the input sequence. If the input sequence X is empty, mean is NaN. |
![]() |
mean is the mean, or average, of the values in the input sequence X. |
![]() |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The VI calculates mean using the following equation.

where µ is mean and n is the number of elements in X.
Refer to the Statistics Solver VI in the labview\examples\analysis\statxmpl.llb for an example of using the Mean VI.