Abs: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:


The abs block converts the input data stream into its absolute value i.e. the negative input values become positive output values and the positive values remain the same at both the input and the output.
The abs block converts the input data stream into its absolute value i.e. the negative input values become positive output values and the positive values remain the same at both the input and the output.
== Supported Data Types ==
* Float
* Int
* Short


== Parameters ==
== Parameters ==
; Vec Length
: Length of the vector


None
; IO Type
: Supported data types
:* Float
:* Int
:* Short


== Example Flowgraph ==
== Example Flowgraph ==

Latest revision as of 09:21, 25 August 2022

Abs-block.png

The abs block converts the input data stream into its absolute value i.e. the negative input values become positive output values and the positive values remain the same at both the input and the output.

Parameters

Vec Length
Length of the vector
IO Type
Supported data types
  • Float
  • Int
  • Short

Example Flowgraph

This flowgraph shows a sinusoid being passed through the Abs block, 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