Difference between revisions of "Abs"

From GNU Radio
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Block Docs]]
 
[[Category:Block Docs]]
 +
[[File:abs-block.png|100px]]
 +
 
Takes absolute value of data stream (i.e. strips sign).  Only supports float, int, and short (not complex).
 
Takes absolute value of data stream (i.e. strips sign).  Only supports float, int, and short (not complex).
 +
 +
== Parameters ==
 +
 +
None
 +
 +
== Example Flowgraph ==
 +
 +
This flowgraph shows a sinusoid being passed through Abs, producing full-wave rectification.
 +
 +
[[File:abs-ex2.png|500px]]
 +
 +
[[File:abs-ex.png|500px]]
 +
 +
== Source Files ==
 +
 +
; C++ files
 +
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/abs_blk_impl.cc]
 +
 +
; Header files
 +
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/abs_blk_impl.h]
 +
 +
; Public header files
 +
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/abs_blk.h]
 +
 +
; Block definition
 +
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_abs_xx.block.yml GRC yaml]

Latest revision as of 15:53, 15 July 2019

Abs-block.png

Takes absolute value of data stream (i.e. strips sign). Only supports float, int, and short (not complex).

Parameters[edit]

None

Example Flowgraph[edit]

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

Abs-ex2.png

Abs-ex.png

Source Files[edit]

C++ files
[1]
Header files
[2]
Public header files
[3]
Block definition
GRC yaml