Table Of Contents

Decimate (Single-shot) (G Dataflow)

Last Modified: January 9, 2017

Decimates an input sequence according to a specific decimating factor and averaging method.


input array

Input sequence.

The number of elements in input array must be greater than or equal to decimating factor.

This input can be an array of double-precision, floating-point numbers or an array of complex double-precision, floating-point numbers.


decimating factor

The factor by which this node decimates the input sequence. decimating factor must be greater than zero. If decimating factor is greater than the number of elements in input array or less than or equal to zero, this node sets decimated array to an empty array and returns an error.

Default: 1


error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error



A Boolean that determines the method this node uses to handle the data points in the input sequence.

True Each output point in decimated array is the mean of the decimating factor input points.
False Keeps every decimating factor point from input array.

Default: False


decimated array

Decimated sequence of the input sequence.


error out

Error information. The node produces this output according to standard error behavior.

Algorithm for Single-Shot Decimation

If Y represents the output sequence decimated array, this node obtains the elements of the sequence Y using the following equation:

If averaging? is False, Y i = x i * m

If averaging? is True, Y i = 1 m k = 0 m 1 x i * m + k

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

size = n m ,


  • x is input array
  • n is the number of elements in input array
  • m is decimating factor
  • size is the number of elements in the output sequence decimated array
  • . gives the largest integer less than or equal to the number

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Recently Viewed Topics