Imported sources from subversion.
This commit is contained in:
11
packages/ns/patches/000-ranvar.patch
Normal file
11
packages/ns/patches/000-ranvar.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- 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;
|
Reference in New Issue
Block a user