Keep 1 in N

From GNU Radio
Jump to navigation Jump to search

Decimate a stream, keeping the last item out of every N.

Keep 1 in N visual.png

Also see Keep M in N.

Parameters

(R): Run-time adjustable

Type
Supported types are: complex, float, int, short, and byte.
N (R)
Block size, in items/samples. Acts as decimation rate.
Vector Length
The length of the vectors for the input stream.

Example Flowgraph

Here is a simple flowgraph showing Keep 1 in N using the values in the description above.

Keep 1 in N Flowgraph.png


The settings are:

Keep 1 in N Settings Example.png


The output is:

Keep 1 in N Example Output.png

Source Files

C++ files
keep_one_in_n_impl.cc
Header files
keep_one_in_n_impl.h
Public header files
keep_one_in_n.h
Block definition
blocks_keep_one_in_n.block.yml