c++ - Using boost's skewed_normal_distribution -
i new c++ , boost.
i want create set of numbers derived skewed distribution using boost's skewed_normal_distribution class. 
i'm not sure how start. want define distribution mean 0.05, variance 0.95, skew of 0.5. following code doesn't work , realise need set variate_generator well. 
can provide pointers? not finding boost documentation page on skew_normal_distribution intuitive might because of inexperience.
note main problem getting message:
‘skew_normal_distribution’ not member of ‘boost’
many thanks
#include <boost/random.hpp> #include <boost/random/normal_distribution.hpp>  #include <boost/math/distributions/skew_normal.hpp>  int main () {     boost::skew_normal_distribution<> normal(0.05, 0.95, 0.5);     return 0; } 
use boost::math::skew_normal_distribution instead of boost::skew_normal_distribution message 
skew_normal_distributionnot member ofboost
Comments
Post a Comment