Decimate (Not in Base Package)

Decimates the input sequence X by the decimating factor and the averaging binary control. Details

X is the input sequence. The number of elements in X must be greater than or equal to the decimating factor.
decimating factor is the factor by which input sequence X is decimated. decimating factor must be greater than zero. The default is 2.0: 0 < decimating factor n.

If decimating factor is greater than the number of samples in X or less than or equal to zero, the VI sets Decimated Array to an empty array and returns an error.

averaging specifies how the Decimate VI handles the data points in X. The default is FALSE. When averaging is set to FALSE, every decimating factor point is kept from X. When averaging is set to TRUE, each output point in Decimated Array is the mean of the decimating factor input points.
Decimated Array returns the decimated sequence of X.
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions.

Decimate Details

If Y represents the output sequence Decimated Array, the Decimate VI obtains the elements of the sequence Y using

for i = 0, 1, 2,…,size-1

,

where n is the number of elements in X, m is the decimating factor, ave is the averaging option, and size is the number of elements in the output sequence Decimated Array.