
18 Oct
2006
18 Oct
'06
4:34 p.m.
Paul A Bristow wrote:
Each statistical probability distribution, like negative_binomial includes a typedef
typedef negative_binomial_distribution<double> negative_binomial; // Reserved name of type double.
so that users have the great convenience (when using double - 99% of use?)
of specifiying distributions thus
using boost::math::negative_binomial; // default type is double. negative_binomial mydist(8., 0.25);
rather than having to use the rather long full, type specified name:
negative_binomial_distribution<double> my8dist(8., 0.25);
There's also the option of negative_binomial_distribution<> my8dist(8., 0.25);