1 diff -crB ns-2.34/mobile/nakagami.cc ns-2.34_new/mobile/nakagami.cc
2 *** ns-2.34/mobile/nakagami.cc 2009-06-14 23:05:45.000000000 +0530
3 --- ns-2.34_new/mobile/nakagami.cc 2010-09-21 13:03:59.000000000 +0530
9 ! resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();
11 ! resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();
19 ! resultPower = ErlangRandomVariable(Pr/m, int_m).value();
21 ! resultPower = GammaRandomVariable(m, Pr/m).value();
25 Only in ns-2.34_new/tcl/lib: ns-autoconf.tcl
26 diff -crB ns-2.34/tools/ranvar.cc ns-2.34_new/tools/ranvar.cc
27 *** ns-2.34/tools/ranvar.cc 2009-06-14 23:05:44.000000000 +0530
28 --- ns-2.34_new/tools/ranvar.cc 2010-09-21 12:56:19.000000000 +0530
31 // ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000
33 double u = rng_->uniform(1.0);
34 ! return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
39 // ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000
41 double u = rng_->uniform(1.0);
42 ! return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);