Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View 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;

View File

@@ -0,0 +1,10 @@
--- ns-2.34/mac/mac-802_11Ext.h 2009-06-14 18:35:44.000000000 +0100
+++ ns-2.34.rasm/mac/mac-802_11Ext.h 2012-09-17 23:57:33.860998370 +0100
@@ -57,6 +57,7 @@
#ifndef ns_mac_80211Ext_h
#define ns_mac_80211Ext_h
+#include <cstddef>
#include "marshall.h"
#include "timer-handler.h"
#define GET_ETHER_TYPE(x) GET2BYTE((x))

View File

@@ -0,0 +1,14 @@
--- 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;
}