Moment about Mean PtByPt VI
- Updated2025-07-30
- 3 minute(s) read
Computes the moment about the mean using the specified order, m, for the set of input data points specified by sample length.
This VI is similar to the Moment about Mean VI.

Inputs/Outputs
initialize
—
initialize, when TRUE, initializes the internal state of the VI.
x
—
x is an input data point.
order
—
order must be greater than 0. If order is less than or equal to 0, the VI sets moment to 0 and returns an error. The default is 2.
sample length
—
sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100. When you set sample length to zero, the VI calculates a cumulative solution for the input data from the time that you called or initialized the VI. When the sample length setting is greater than zero, the VI calculates the solution for only the newest set of input data.
moment
—
moment is the moment about the mean computed from the set of input data points specified by sample length.
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. |
FPGA Module Details
The following details apply when you use this object in an FPGA VI.
| Single-Cycle Timed Loop | Supported. |
| Usage | The default data type for these constants is single-precision floating-point (SGL). |
| Timing | These constants require no clock cycles to execute because they do not include internal registers. |
| Resources | These constants alone consume no FPGA resources. However, if you wire a constant to a logical operation, FPGA lookup table resources store the constant value. |
initialize
—
x
—
order
—
moment
—
error
—