Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-10-18 12:34:44


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);


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk