#include <newran.h>
Inheritance diagram for Gamma:


Public Member Functions | |
| char * | Name () |
| Gamma (Real) | |
| virtual | ~Gamma () |
| Real | Next () |
| ExtReal | Mean () const |
| ExtReal | Variance () const |
Private Member Functions | |
| void | operator= (const Gamma &) |
Private Attributes | |
| Random * | method |
|
|
Definition at line 525 of file newran.cpp. References ErrorNoSpace(), and method.
00526 {
00527 if (alpha<1.0) method = new Gamma1(alpha);
00528 else if (alpha==1.0) method = new Exponential();
00529 else method = new Gamma2(alpha);
00530 if (!method) ErrorNoSpace();
00531 }
|
|
|
Definition at line 217 of file newran.h. References tron.
|
|
|
Reimplemented from Random. Definition at line 225 of file newran.h.
|
|
|
Reimplemented from Random. Definition at line 918 of file newran.cpp.
00918 { return "Gamma"; }
|
|
|
Reimplemented from Random. Definition at line 224 of file newran.h. References Real.
|
|
|
Definition at line 211 of file newran.h.
00211 {} // private so can't access
|
|
|
Reimplemented from Random. Definition at line 226 of file newran.h.
|
|
|
Definition at line 212 of file newran.h. Referenced by Gamma(). |
1.3.3