Fix trailing whitespace, tabs and indentation
This commit is contained in:
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@@ -22,4 +22,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ $extrastylesheet
|
|||||||
<script type="text/javascript" src="$relpath$drop-down-menu.js"></script>
|
<script type="text/javascript" src="$relpath$drop-down-menu.js"></script>
|
||||||
<script type="text/javascript" src="$relpath$ns3_version.js"></script>
|
<script type="text/javascript" src="$relpath$ns3_version.js"></script>
|
||||||
<script type="text/javascript" src="$relpath$ns3_links.js"></script>
|
<script type="text/javascript" src="$relpath$ns3_links.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||||
|
|
||||||
@@ -39,9 +39,9 @@ $extrastylesheet
|
|||||||
<tr id="projectrow">
|
<tr id="projectrow">
|
||||||
<td id="projectlogo">
|
<td id="projectlogo">
|
||||||
<a id="ns3_home1"
|
<a id="ns3_home1"
|
||||||
href="https://www.nsnam.org/">
|
href="https://www.nsnam.org/">
|
||||||
<img alt="ns-3 Logo"
|
<img alt="ns-3 Logo"
|
||||||
src="$relpath$$projectlogo"/>
|
src="$relpath$$projectlogo"/>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td id="projecttext">
|
<td id="projecttext">
|
||||||
@@ -54,19 +54,19 @@ $extrastylesheet
|
|||||||
<ul >
|
<ul >
|
||||||
<li style="background-image:none">
|
<li style="background-image:none">
|
||||||
<a id="ns3_home2"
|
<a id="ns3_home2"
|
||||||
href="https://www.nsnam.org/"
|
href="https://www.nsnam.org/"
|
||||||
> Home</a>
|
> Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li><span
|
<li><span
|
||||||
onmouseover="mopen('mTuts')"
|
onmouseover="mopen('mTuts')"
|
||||||
onmouseout="mclosetime()"
|
onmouseout="mclosetime()"
|
||||||
>Tutorials ▼</span>
|
>Tutorials ▼</span>
|
||||||
<div id="mTuts"
|
<div id="mTuts"
|
||||||
onmouseover="mcancelclosetime()"
|
onmouseover="mcancelclosetime()"
|
||||||
onmouseout="mclosetime()">
|
onmouseout="mclosetime()">
|
||||||
<a id="ns3_tut"
|
<a id="ns3_tut"
|
||||||
href="/docs/tutorial/html/index.html"
|
href="/docs/tutorial/html/index.html"
|
||||||
>English</a><br/>
|
>English</a><br/>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><span
|
<li><span
|
||||||
@@ -74,8 +74,8 @@ $extrastylesheet
|
|||||||
onmouseout="mclosetime()"
|
onmouseout="mclosetime()"
|
||||||
>Documentation ▼</span>
|
>Documentation ▼</span>
|
||||||
<div id="mDocs"
|
<div id="mDocs"
|
||||||
onmouseover="mcancelclosetime()"
|
onmouseover="mcancelclosetime()"
|
||||||
onmouseout="mclosetime()">
|
onmouseout="mclosetime()">
|
||||||
<a id="ns3_ins"
|
<a id="ns3_ins"
|
||||||
href="/docs/installation/html/index.html"
|
href="/docs/installation/html/index.html"
|
||||||
>Installation</a><br/>
|
>Installation</a><br/>
|
||||||
@@ -98,16 +98,16 @@ $extrastylesheet
|
|||||||
onmouseout="mclosetime()"
|
onmouseout="mclosetime()"
|
||||||
>Development ▼</span>
|
>Development ▼</span>
|
||||||
<div id="mDev"
|
<div id="mDev"
|
||||||
onmouseover="mcancelclosetime()"
|
onmouseover="mcancelclosetime()"
|
||||||
onmouseout="mclosetime()">
|
onmouseout="mclosetime()">
|
||||||
<a id="ns3_api"
|
<a id="ns3_api"
|
||||||
href="/docs/doxygen/html/index.html"
|
href="/docs/doxygen/html/index.html"
|
||||||
>API Docs</a><br/>
|
>API Docs</a><br/>
|
||||||
<a id="ns3_bugs"
|
<a id="ns3_bugs"
|
||||||
href="https://gitlab.com/nsnam/ns-3-dev/-/issues"
|
href="https://gitlab.com/nsnam/ns-3-dev/-/issues"
|
||||||
>Issue Tracker</a><br/>
|
>Issue Tracker</a><br/>
|
||||||
<a id="ns3_merge"
|
<a id="ns3_merge"
|
||||||
href="https://gitlab.com/nsnam/ns-3-dev/-/merge_requests"
|
href="https://gitlab.com/nsnam/ns-3-dev/-/merge_requests"
|
||||||
>Merge Requests</a><br/>
|
>Merge Requests</a><br/>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -121,7 +121,7 @@ $extrastylesheet
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<script type="text/javascript">ns3_write_links()</script>
|
<script type="text/javascript">ns3_write_links()</script>
|
||||||
</div>
|
</div>
|
||||||
<!--END TITLEAREA-->
|
<!--END TITLEAREA-->
|
||||||
<!-- end header part -->
|
<!-- end header part -->
|
||||||
|
|||||||
@@ -30,9 +30,9 @@
|
|||||||
// POSSIBILITY OF SUCH DAMAGE.
|
// POSSIBILITY OF SUCH DAMAGE.
|
||||||
//
|
//
|
||||||
|
|
||||||
var timeout = 250;
|
var timeout = 250;
|
||||||
var closetimer = 0;
|
var closetimer = 0;
|
||||||
var ddmenuitem = 0;
|
var ddmenuitem = 0;
|
||||||
|
|
||||||
// open hidden layer
|
// open hidden layer
|
||||||
function mopen(id)
|
function mopen(id)
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ div.sphinxsidebar a {
|
|||||||
|
|
||||||
#projectrow
|
#projectrow
|
||||||
{
|
{
|
||||||
height: 56px;
|
height: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#projectlogo {
|
#projectlogo {
|
||||||
|
|||||||
@@ -98,9 +98,9 @@ $(function() {
|
|||||||
// find the height of the viewport to center the '<<' in the page
|
// find the height of the viewport to center the '<<' in the page
|
||||||
var viewport_height;
|
var viewport_height;
|
||||||
if (window.innerHeight)
|
if (window.innerHeight)
|
||||||
viewport_height = window.innerHeight;
|
viewport_height = window.innerHeight;
|
||||||
else
|
else
|
||||||
viewport_height = $(window).height();
|
viewport_height = $(window).height();
|
||||||
sidebarbutton.find('span').css({
|
sidebarbutton.find('span').css({
|
||||||
'display': 'block',
|
'display': 'block',
|
||||||
'margin-top': (viewport_height - sidebar.position().top - 20) / 2
|
'margin-top': (viewport_height - sidebar.position().top - 20) / 2
|
||||||
|
|||||||
@@ -22,29 +22,28 @@ collapsiblesidebar = false
|
|||||||
externalrefs = false
|
externalrefs = false
|
||||||
|
|
||||||
bgcolor = white
|
bgcolor = white
|
||||||
textcolor = black
|
textcolor = black
|
||||||
linkcolor = #91A501
|
linkcolor = #91A501
|
||||||
visitedlinkcolor = #91A501
|
visitedlinkcolor = #91A501
|
||||||
|
|
||||||
headbgcolor = #E3E3E3
|
headbgcolor = #E3E3E3
|
||||||
headtextcolor = #373737
|
headtextcolor = #373737
|
||||||
headlinkcolor = #91A501
|
headlinkcolor = #91A501
|
||||||
|
|
||||||
relbarbgcolor = #D5D5D5
|
relbarbgcolor = #D5D5D5
|
||||||
relbarlinkcolor = #373737
|
relbarlinkcolor = #373737
|
||||||
relbartextcolor = #373737
|
relbartextcolor = #373737
|
||||||
|
|
||||||
sidebarbgcolor = #FAFAFA
|
sidebarbgcolor = #FAFAFA
|
||||||
sidebartextcolor = #373737
|
sidebartextcolor = #373737
|
||||||
sidebarlinkcolor = #91A501
|
sidebarlinkcolor = #91A501
|
||||||
sidebarbtncolor = #D5D5D5
|
sidebarbtncolor = #D5D5D5
|
||||||
|
|
||||||
footerbgcolor = #D5D5D5
|
footerbgcolor = #D5D5D5
|
||||||
footertextcolor = #364D7C
|
footertextcolor = #364D7C
|
||||||
|
|
||||||
codebgcolor = #FBFCFD
|
codebgcolor = #FBFCFD
|
||||||
codetextcolor = black
|
codetextcolor = black
|
||||||
|
|
||||||
bodyfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif
|
bodyfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif
|
||||||
headfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif
|
headfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ for nrbs = [6 15]
|
|||||||
npsdv = ones (1,nrbs) * (noise_psd * 10.^(noise_figure_dB/10));
|
npsdv = ones (1,nrbs) * (noise_psd * 10.^(noise_figure_dB/10));
|
||||||
|
|
||||||
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
|
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
|
||||||
name, earfcn, nrbs);
|
name, earfcn, nrbs);
|
||||||
|
|
||||||
print_C_vector (npsdv, name);
|
print_C_vector (npsdv, name);
|
||||||
printf("AddTestCase (new LteNoisePsdTestCase (\"%s\", %d, %d, %f, %s));\n\n", name, earfcn, nrbs, noise_figure_dB, name);
|
printf("AddTestCase (new LteNoisePsdTestCase (\"%s\", %d, %d, %f, %s));\n\n", name, earfcn, nrbs, noise_figure_dB, name);
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ for run = 1:2
|
|||||||
print_C_vector (activeRbs, arname);
|
print_C_vector (activeRbs, arname);
|
||||||
|
|
||||||
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
|
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
|
||||||
svname, earfcn, nrbs);
|
svname, earfcn, nrbs);
|
||||||
print_C_vector (txpsd, svname);
|
print_C_vector (txpsd, svname);
|
||||||
|
|
||||||
printf("AddTestCase (new LteTxPsdTestCase (\"%s\", %d, %d, %f, %s, %s));\n\n",
|
printf("AddTestCase (new LteTxPsdTestCase (\"%s\", %d, %d, %f, %s, %s));\n\n",
|
||||||
basename, earfcn, nrbs, txpowdBm, arname, svname);
|
basename, earfcn, nrbs, txpowdBm, arname, svname);
|
||||||
|
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
|
|||||||
|
|
||||||
nrbsControl = 25; % tx bandwidth configuration in number of RBs
|
nrbsControl = 25; % tx bandwidth configuration in number of RBs
|
||||||
bwControl = nrbsControl * 180000; % bandwidth in Hz, note that this is smaller than
|
bwControl = nrbsControl * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
|
|
||||||
nrbsData = 12; % tx bandwidth configuration in number of RBs
|
nrbsData = 12; % tx bandwidth configuration in number of RBs
|
||||||
bwData = nrbsData * 180000; % bandwidth in Hz, note that this is smaller than
|
bwData = nrbsData * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
|
|
||||||
kT = -174; % noise PSD in dBm / Hz
|
kT = -174; % noise PSD in dBm / Hz
|
||||||
ndBmData = kT + 10*log10(bwData); % noise power dBm
|
ndBmData = kT + 10*log10(bwData); % noise power dBm
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ close all;
|
|||||||
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
|
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
|
||||||
nrbs = 25; % tx bandwidth configuration in number of RBs
|
nrbs = 25; % tx bandwidth configuration in number of RBs
|
||||||
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
kT = -174; % noise PSD in dBm / Hz
|
kT = -174; % noise PSD in dBm / Hz
|
||||||
n = kT + 10*log10(bw); % noise power dBm
|
n = kT + 10*log10(bw); % noise power dBm
|
||||||
p = 30; % tx power dBm
|
p = 30; % tx power dBm
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ fdl = 2120e6; % DL carrier freq Hz, EARFCN = 100
|
|||||||
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
|
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
|
||||||
nrbs = 25; % tx bandwidth configuration in number of RBs
|
nrbs = 25; % tx bandwidth configuration in number of RBs
|
||||||
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
kT = -174; % noise PSD in dBm / Hz
|
kT = -174; % noise PSD in dBm / Hz
|
||||||
ndBm = kT + 10*log10(bw); % noise power dBm
|
ndBm = kT + 10*log10(bw); % noise power dBm
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ for d2 = [20 50 200 500]
|
|||||||
|
|
||||||
|
|
||||||
printf("AddTestCase (new LteInterferenceTestCase (\"d1=%d, d2=%d\", % f, %f, % f, %f, % f, %f, , ));\n", \
|
printf("AddTestCase (new LteInterferenceTestCase (\"d1=%d, d2=%d\", % f, %f, % f, %f, % f, %f, , ));\n", \
|
||||||
d1, d2, d1, d2, dlsinr, ulsinr, dlse, ulse)
|
d1, d2, d1, d2, dlsinr, ulsinr, dlse, ulse)
|
||||||
|
|
||||||
|
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ fdl = 2120e6; % DL carrier freq Hz, EARFCN = 100
|
|||||||
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
|
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
|
||||||
nrbs = 25; % tx bandwidth configuration in number of RBs
|
nrbs = 25; % tx bandwidth configuration in number of RBs
|
||||||
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
kT = -174; % noise PSD in dBm / Hz
|
kT = -174; % noise PSD in dBm / Hz
|
||||||
ndBm = kT + 10*log10(bw); % noise power dBm
|
ndBm = kT + 10*log10(bw); % noise power dBm
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ close all;
|
|||||||
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
|
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
|
||||||
nrbs = 25; % tx bandwidth configuration in number of RBs
|
nrbs = 25; % tx bandwidth configuration in number of RBs
|
||||||
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
bw = nrbs * 180000; % bandwidth in Hz, note that this is smaller than
|
||||||
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
% the nominal Channel Bandwidth, see TS 36.101 fig 5.6-1
|
||||||
kT = -174; % noise PSD in dBm / Hz
|
kT = -174; % noise PSD in dBm / Hz
|
||||||
n = kT + 10*log10(bw); % noise power dBm
|
n = kT + 10*log10(bw); % noise power dBm
|
||||||
p = 20; % tx power dBm
|
p = 20; % tx power dBm
|
||||||
@@ -20,9 +20,9 @@ nW = 10.^((n+nf-30)./10); % noise power in W
|
|||||||
%%d = logspace (0,5,100);
|
%%d = logspace (0,5,100);
|
||||||
x = linspace (0,4000,100);
|
x = linspace (0,4000,100);
|
||||||
g1 = gain_freespace(abs (x-1000),f); % propagation gain from
|
g1 = gain_freespace(abs (x-1000),f); % propagation gain from
|
||||||
% eNB 1
|
% eNB 1
|
||||||
g2 = gain_freespace(abs (x-2000),f); % propagation gain from
|
g2 = gain_freespace(abs (x-2000),f); % propagation gain from
|
||||||
% eNB 2
|
% eNB 2
|
||||||
|
|
||||||
sinr1 = 10.*log10 (pW .* g1 ./ (nW + pW .* g2)); %dB
|
sinr1 = 10.*log10 (pW .* g1 ./ (nW + pW .* g2)); %dB
|
||||||
sinr2 = 10.*log10 (pW .* g2 ./ (nW + pW .* g1)); %dB
|
sinr2 = 10.*log10 (pW .* g2 ./ (nW + pW .* g1)); %dB
|
||||||
|
|||||||
@@ -46,19 +46,19 @@ fc = -4;
|
|||||||
|
|
||||||
stepNumToExecute = 12;
|
stepNumToExecute = 12;
|
||||||
fcValueSequence = [
|
fcValueSequence = [
|
||||||
[0, 0];
|
[0, 0];
|
||||||
[-1, 20];
|
[-1, 20];
|
||||||
[-1, 20];
|
[-1, 20];
|
||||||
[1, 1];
|
[1, 1];
|
||||||
[3, 10];
|
[3, 10];
|
||||||
[1, 15];
|
[1, 15];
|
||||||
[3, 1];
|
[3, 1];
|
||||||
[1, 10];
|
[1, 10];
|
||||||
[1, 10];
|
[1, 10];
|
||||||
[-1, 1];
|
[-1, 1];
|
||||||
[-1, 20];
|
[-1, 20];
|
||||||
[1, 5]
|
[1, 5]
|
||||||
];
|
];
|
||||||
|
|
||||||
%% distances
|
%% distances
|
||||||
%% d1
|
%% d1
|
||||||
|
|||||||
Reference in New Issue
Block a user