Fast Noise Source: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Created page with "Similar to the Noise Source block, except it uses less CPU by pre-generating a pool of random variates taken from the specified distribution. At runtime, samples are then uni...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Similar to the Noise Source block, except it uses less CPU by pre-generating a pool of random variates taken from the specified distribution.  At runtime, samples are then uniform randomly chosen from this pool which is a very fast operation.
[[Category:Block Docs]]
Similar to the [[Noise Source]] block, except it uses less CPU by pre-generating a pool of random variates taken from the specified distribution.  At runtime, samples are then uniform randomly chosen from this pool which is a very fast operation.


Supports output of type complex, float, int, short
Supports output of type complex, float, int, short


Args:
== Parameters ==
* Noise Type - the random distribution to use, only Gaussian and Uniform are supported
 
* Amplitude - the standard deviation of a 1-d noise process. If this is the complex source, this parameter is split among the real and imaginary parts
; Noise Type
* Seed - seed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number.
: The random distribution to use, only Gaussian and Uniform are supported
* Variate Pool Size - Number of samples to pre-generate
 
; Amplitude
: The standard deviation of a 1-d noise process. If this is the complex source, this parameter is split among the real and imaginary parts
 
; Seed
: Seed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number.
 
; Variate Pool Size
: Number of samples to pre-generate
 
 
== Example Flowgraph ==
 
Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI.  Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately.  The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.
 
== Source Files ==
 
; C++ files
: [https://github.com/gnuradio/gnuradio/blob/main/gr-analog/lib/fastnoise_source_impl.cc]
 
; Header files
: [https://github.com/gnuradio/gnuradio/blob/main/gr-analog/lib/fastnoise_source_impl.h]
 
; Public header files
: [https://github.com/gnuradio/gnuradio/blob/main/gr-analog/include/gnuradio/analog/fastnoise_source.h]
 
; Block definition
: [https://github.com/gnuradio/gnuradio/blob/main/gr-analog/grc/analog_fastnoise_source_x.block.yml]

Latest revision as of 17:22, 5 March 2024

Similar to the Noise Source block, except it uses less CPU by pre-generating a pool of random variates taken from the specified distribution. At runtime, samples are then uniform randomly chosen from this pool which is a very fast operation.

Supports output of type complex, float, int, short

Parameters

Noise Type
The random distribution to use, only Gaussian and Uniform are supported
Amplitude
The standard deviation of a 1-d noise process. If this is the complex source, this parameter is split among the real and imaginary parts
Seed
Seed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number.
Variate Pool Size
Number of samples to pre-generate


Example Flowgraph

Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI. Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately. The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.

Source Files

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