Mean VI

Owning Palette: Probability & Statistics VIs

Requires: Base Development System

Computes the mean of the values in the input sequence X. You must manually select the polymorphic instance you want to use.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Mean (DBL)

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.

Mean (CDB)

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.

Mean Details

The VI calculates mean using the following equation.

where µ is mean and n is the number of elements in X.

Example

Refer to the Statistics Solver VI in the labview\examples\Mathematics\Probability and Statistics directory for an example of using the Mean VI.

 Open example  Find related examples