diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-10-05 21:50:27 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-02 18:06:50 -0800 |
commit | 75b0a50271575e6880148625f5e23b0e60193c75 (patch) | |
tree | 8261489893e21e807273967c4ea572432ca62732 /gr-channels/lib/selective_fading_model2_impl.h | |
parent | 356e7071681ca9ce1f4e9e76e5b668018c86558d (diff) |
channels: models' random facilities use C++11 (minus boost)
Diffstat (limited to 'gr-channels/lib/selective_fading_model2_impl.h')
-rw-r--r-- | gr-channels/lib/selective_fading_model2_impl.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/gr-channels/lib/selective_fading_model2_impl.h b/gr-channels/lib/selective_fading_model2_impl.h index 55a818db30..f1a2d6d64d 100644 --- a/gr-channels/lib/selective_fading_model2_impl.h +++ b/gr-channels/lib/selective_fading_model2_impl.h @@ -27,10 +27,6 @@ #include <gnuradio/channels/selective_fading_model2.h> #include <gnuradio/sync_block.h> -//#include <iostream> -#include <boost/format.hpp> -#include <boost/random.hpp> - #include "sincostable.h" #include <gnuradio/fxpt.h> @@ -48,21 +44,20 @@ private: std::vector<float> d_mags; sincostable d_sintable; - boost::mt19937 seed_1; - boost::normal_distribution<> dist_1; // U(-pi,pi) - boost::variate_generator<boost::mt19937&, boost::normal_distribution<>> rv_1; + std::mt19937 rng_1; + std::normal_distribution<> dist_1; // U(-pi,pi) public: selective_fading_model2_impl(unsigned int N, float fDTs, bool LOS, float K, - int seed, + uint32_t seed, std::vector<float> delays, - std::vector<float> delay_std, - std::vector<float> delay_maxdev, + std::vector<float> delays_std, + std::vector<float> delays_maxdev, std::vector<float> mags, - int ntaps); + unsigned int ntaps); ~selective_fading_model2_impl(); void setup_rpc(); int work(int noutput_items, |