Mean (DBL) VI
- Updated2025-07-30
- 2 minute(s) read
Computes the mean of the values in the input sequence X. You must manually select the polymorphic instance you want to use.

Inputs/Outputs
X
—
X is the input sequence. If the input sequence X is empty, mean is NaN.
mean
—
mean is the mean, or average, of the values in the input sequence X.
error
—
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.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Probability and Statistics\Statistics Solver.vi
X
—
mean
—
error
—