12 lines
496 B
Diff
12 lines
496 B
Diff
|
--- ns-2.34/tools/ranvar.cc 2009-06-14 18:35:44.000000000 +0100
|
||
|
+++ ns-2.34.rasm/tools/ranvar.cc 2012-09-17 23:48:42.570482838 +0100
|
||
|
@@ -216,7 +216,7 @@
|
||
|
// ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000
|
||
|
if (alpha_ < 1) {
|
||
|
double u = rng_->uniform(1.0);
|
||
|
- return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
|
||
|
+ return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
|
||
|
}
|
||
|
|
||
|
double x, v, u;
|