Difference between revisions of "Abs"
From GNU Radio
(Created page with "Takes absolute value of data stream (i.e. strips sign). Only supports float, int, and short (not complex).") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[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
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.
Source Files[edit]
- C++ files
- [1]
- Header files
- [2]
- Public header files
- [3]
- Block definition
- GRC yaml