Difference between revisions of "Add"

From GNU Radio
Jump to navigation Jump to search
Line 4: Line 4:
For all n samples on all M input streams x_m:
For all n samples on all M input streams x_m:
  output[n] = sum( x_0[n], x_1[n], ..., x_m[n])
  output[n] = sum( x_0[n], x_1[n], ..., x_m[n])
== Supported Data Types ==
; {{font color|blue|Complex}}
; Float
; Int
; Short


== Parameters ==
== Parameters ==

Revision as of 09:15, 25 August 2022

Add samples across all input streams.

For all n samples on all M input streams x_m:

output[n] = sum( x_0[n], x_1[n], ..., x_m[n])

Supported Data Types

Template:Font color
Float
Int
Short

Parameters

Num Inputs
Number of streams to add

Example Flowgraph

This flowgraph uses an Add Block to generate the classic "dial tone".

Add block fg.png

Add Block out.png

Source Files

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