Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

moment_central (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: statistics

Requires: MathScript RT Module


y = moment_central(x, order)

y = moment_central(x, order, dim)

Legacy Name: moment


Computes the central sample moment of the input vector or matrix.



Name Description
x Specifies a real or complex vector or matrix.
order Specifies the order of the central moment.
dim Specifies the dimension of x across which to compute the central moment if x is a matrix. dim is a scalar that accepts the following values:

1 (default) Computes the column-wise central moment.
2 Computes the row-wise central moment.


Name Description
y Returns the central moment of x. If x is a vector, y returns the central moment value of all elements in x. If x is a matrix, y returns a vector of the central moments of each of the rows or columns in x, depending on the value of dim. y is a scalar or vector.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


X = [1.1 -2 10.5 -4 2.7 3.6];
Y = moment_central(X, 2);

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful