TSA Moving Average (Waveform) VI
- Updated2024-07-30
- 3 minute(s) read
Performs moving average on a univariate or multivariate (vector) time series to smooth out fluctuations or to estimate the trend of the time series. Wire data to the Xt input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
![]() Xt specifies the univariate time series. ![]() method specifies the filter type to use in filtering the input time series. ![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() user defined weights specifies a set of weights for the moving average operation. If you specify a value for user defined weights, this VI ignores the setting for method. The number of weights must be odd, and the weight array must be symmetric so no phase distortion takes places in the moving average operation. ![]() Xt out returns the filtered univariate time series. ![]() error out contains error information. This output provides standard error out functionality. |
TSA Moving Average Details
This VI estimates the trend of a time series by using a linear filtering operation according to the following equation:
where {ar} is a set of weights. In practice, . This operation is a moving average or finite impulse response (FIR) filter.
Examples
Refer to the Moving Average VI in the labview\examples\Time Series Analysis\TSAGettingStarted directory for an example of using the TSA Moving Average VI.