Abs: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
[[File:abs-block.png|100px]]
[[File:abs-block.png|100px]]


Takes absolute value of data stream (i.e. strips sign). Only supports float, int, and short (not complex).
The abs block converts the input data stream into an absolute value output (i.e. strips sign). This block only supports float, int, and short data types.


== Parameters ==
== Parameters ==

Revision as of 09:07, 25 August 2022

Abs-block.png

The abs block converts the input data stream into an absolute value output (i.e. strips sign). This block only supports float, int, and short data types.

Parameters

None

Example Flowgraph

This flowgraph shows a sinusoid being passed through Abs, producing full-wave rectification.

Abs-ex2.png

Abs-ex.png

Source Files

C++ files
abs_blk_impl.cc
Header files
abs_blk_impl.h
Public header files
abs_blk.h
Block definition
blocks_abs_xx.block.yml