correct light speed in ITU-R porpagation models
This commit is contained in:
@@ -46,7 +46,7 @@ disp ("Test #3: the value of Kun 2.6 GHz is:"), disp (g)
|
||||
% Test #4
|
||||
d = 1041.2; %m
|
||||
f = 2114e6;
|
||||
g = loss_ITU1411_LOS (d, hb, hm, hr, f);
|
||||
g = loss_ITU1411_LOS (d, hb, hm, f);
|
||||
disp ("Test #4: the value of ITU1411 in LOS is:"), disp (g)
|
||||
|
||||
% Test #5
|
||||
|
||||
@@ -21,7 +21,7 @@ b = 50;
|
||||
st_w = 20;
|
||||
phi = 45;
|
||||
big = 1; % metropolitan centre
|
||||
g = loss_ITU1411_LOS (d, hb, hm, hr, f);
|
||||
g = loss_ITU1411_LOS (d, hb, hm, f);
|
||||
printf ("Test #11: the value of ITU1411 in LOS is: %f\n", g);
|
||||
|
||||
d = d = 500.84;
|
||||
|
||||
@@ -81,7 +81,7 @@ void
|
||||
ItuR1411LosPropagationLossModel::SetFrequency (double freq)
|
||||
{
|
||||
NS_ASSERT (freq > 0.0);
|
||||
m_lambda = 300000000 / freq;
|
||||
m_lambda = 299792458.0 / freq;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ void
|
||||
ItuR1411NlosOverRooftopPropagationLossModel::SetFrequency (double freq)
|
||||
{
|
||||
m_frequency = freq;
|
||||
m_lambda = 300000000 / freq;
|
||||
m_lambda = 299792458.0 / freq;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
function g = loss_ITU1411_LOS (d, hb, hm, hr, f)
|
||||
function g = loss_ITU1411_LOS (d, hb, hm, f)
|
||||
|
||||
%%
|
||||
%% function g = loss_ITU1411_LOS(d, hb, hm, hr, f)
|
||||
%% function g = loss_ITU1411_LOS(d, hb, hm, f)
|
||||
%%
|
||||
%% returns the loss at d meters for f frequency and mobile height m and
|
||||
%% base station height of hb
|
||||
@@ -10,7 +10,7 @@ function g = loss_ITU1411_LOS (d, hb, hm, hr, f)
|
||||
assert(f > 0);
|
||||
|
||||
|
||||
lambda = 300000000.0 / f;
|
||||
lambda = 299792458 / f;
|
||||
Lbp = abs(20*log10(lambda^2/(8*pi*hb*hm)));
|
||||
Rbp = (4*hb*hm) / lambda;
|
||||
if (d<=Rbp)
|
||||
|
||||
@@ -10,7 +10,7 @@ function g = loss_ITU1411_NLOS_over_rooftop (d, hb, hm, hr, f, l, b, st_w, phi,
|
||||
assert(f > 0);
|
||||
|
||||
|
||||
lambda = 300000000.0 / f;
|
||||
lambda = 299792458 / f;
|
||||
fmhz = f/1e6;
|
||||
Dhb = hb - hr;
|
||||
ds = (lambda*d*d)/(Dhb*Dhb);
|
||||
|
||||
Reference in New Issue
Block a user