|
gslmm::pascal Class Reference
[Distributions]
#include <gslmm/random/pascal.hh>
Inheritance diagram for gslmm::pascal:
[legend]Collaboration diagram for gslmm::pascal:
[legend]List of all members.
Detailed Description
Pascal distribution interface class.
This is the same as gslmm::negative_binomal, except is an integer.
The Pascal PDF is
for - Examples:
-
random/distribution-test.cc.
Member Typedef Documentation
Constructor & Destructor Documentation
gslmm::pascal::pascal |
( |
double |
p, |
|
|
size_t |
n, |
|
|
generator & |
r |
|
) |
[inline] |
|
|
Constructor.
- Parameters:
-
| p | The probability parameter |
| n | The number parameter |
| r | The random number generator |
|
virtual gslmm::pascal::~pascal |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
virtual double gslmm::pascal::pdf |
( |
const return_type & |
k |
) |
[inline, virtual] |
|
virtual return_type gslmm::pascal::sample |
( |
|
) |
[inline, virtual] |
|
Member Data Documentation
|
Parameter n of the distribution.
|
|
Probability of the distribution.
|
The documentation for this class was generated from the following file:
|