12#ifndef FASTNOISE_SOURCE_H
13#define FASTNOISE_SOURCE_H
37 typedef std::shared_ptr<fastnoise_source<T>>
sptr;
55 virtual const std::vector<T>&
samples()
const = 0;
Random number source.
Definition: fastnoise_source.h:34
virtual void set_amplitude(float ampl)=0
virtual const std::vector< T > & samples() const =0
static sptr make(noise_type_t type, float ampl, uint64_t seed=0, size_t samples=1024 *16)
Make a fast noise source.
virtual float amplitude() const =0
virtual noise_type_t type() const =0
virtual void set_type(noise_type_t type)=0
virtual T sample_unbiased()=0
std::shared_ptr< fastnoise_source< T > > sptr
Definition: fastnoise_source.h:37
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
fastnoise_source< float > fastnoise_source_f
Definition: fastnoise_source.h:74
noise_type_t
Definition: noise_type.h:17
fastnoise_source< gr_complex > fastnoise_source_c
Definition: fastnoise_source.h:77
fastnoise_source< std::int32_t > fastnoise_source_i
Definition: fastnoise_source.h:75
fastnoise_source< std::int16_t > fastnoise_source_s
Definition: fastnoise_source.h:76
GNU Radio logging wrapper.
Definition: basic_block.h:29