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


icon

Inputs/Outputs

  • c1ddbl.png X

    X is the input sequence. If the input sequence X is empty, mean is NaN.

  • idbl.png mean

    mean is the mean, or average, of the values in the input sequence X.

  • ii32.png 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