GNU Radio 3.6.5 C++ API

gr_noise_source_i.h File Reference

#include <gr_core_api.h>
#include <gr_sync_block.h>
#include <gr_noise_type.h>
#include <gr_random.h>

Go to the source code of this file.

Classes

class  gr_noise_source_i
 Random number source. More...

Functions

GR_CORE_API gr_noise_source_i_sptr gr_make_noise_source_i (gr_noise_type_t type, float ampl, long seed=0)
 Make a noise source.

Function Documentation

GR_CORE_API gr_noise_source_i_sptr gr_make_noise_source_i ( gr_noise_type_t  type,
float  ampl,
long  seed = 0 
)

Make a noise source.

Parameters:
typethe random distribution to use (see gr_noise_type.h)
ampla scaling factor for the output
seedseed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number.