Computes the moment about the mean of the input sequence X using the specified order, m.


icon

Inputs/Outputs

  • c1ddbl.png X

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

  • ci32.png order

    order must be greater than 0. If order is less than or equal to 0, the VI sets moment to NaN and returns an error. The default is 2.

  • idbl.png moment

    moment, which is calculated using the specified order, is the moment about the mean of 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 computes the mth-order moment using the following equation.

    where σxm is the mth-order moment, and n is the number of elements in the input sequence X.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Probability and Statistics\Statistics Solver.vi
    • labview\examples\Mathematics\Probability and Statistics\Noise Statistics.vi