

Public Member Functions | |
| Poisson2 (Real) | |
| ~Poisson2 () | |
| Real | Next () |
| ExtReal | Mean () const |
| ExtReal | Variance () const |
Private Attributes | |
| DiscreteGen * | dg |
|
|
Definition at line 440 of file newran.cpp. References dg, ErrorNoSpace(), and Real.
00441 {
00442 Real probs[40];
00443 probs[0]=exp(-mux);
00444 for (int i=1; i<40; i++) probs[i]=probs[i-1]*mux/i;
00445 dg=new DiscreteGen(40,probs);
00446 if (!dg) ErrorNoSpace();
00447 }
|
|
|
Definition at line 449 of file newran.cpp. References dg.
00449 { delete dg; }
|
|
|
Reimplemented from Random. Definition at line 55 of file newran.cpp.
|
|
|
Reimplemented from Random. Definition at line 54 of file newran.cpp. References Real.
|
|
|
Reimplemented from Random. Definition at line 56 of file newran.cpp.
|
|
|
Definition at line 50 of file newran.cpp. Referenced by Poisson2(), and ~Poisson2(). |
1.3.3