static boost::mt19937 l_random(static_cast<std::size_t>(time(0)));
boost::variate_generator<boost::mt19937&, boost::normal_distribution<> > l_noise( l_random, l_range );
I get my value with l_noise() and it works without any problem.
static boost::mt19937 l_random(static_cast<std::size_t>(time(0)));
boost::variate_generator<boost::mt19937&, boost::math::students_t_distribution<> > l_noise( l_random, l_range );
If I run my l_noise() I got a compiler error: error: no match for call to '(boost::variate_generator<boost::random::mersenne_twister<uint32_t, 32, 624, 397, 31, 2567483615u, 11, 7, 2636928640u, 15, 4022730752u, 18, 3346425566u>&, boost::math::students_t_distribution<double, boost::math::policies::policy<boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> > >) ()'
Can anyone help me please to understand my mistake while using the students_t distribution? I think I need the mt19937 for creating random values and the variate_generator to create a "distribution value"
Thanks
Phil