This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/packages/ns/patches/002-nakagami-constructor.patch
2013-07-13 17:19:22 +01:00

15 lines
543 B
Diff

--- ns-2.34/mobile/nakagami.cc 2009-06-14 18:35:45.000000000 +0100
+++ ns-2.34.rasm/mobile/nakagami.cc 2012-09-17 23:58:47.205778273 +0100
@@ -180,9 +180,9 @@
double resultPower;
if (int_m == m) {
- resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();
+ resultPower = ErlangRandomVariable(Pr/m, int_m).value();
} else {
- resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();
+ resultPower = GammaRandomVariable(m, Pr/m).value();
}
return resultPower;
}