Fix trailing whitespace, tabs and indentation

This commit is contained in:
Eduardo Almeida
2024-02-19 13:34:18 +00:00
parent 0bd18b88e7
commit 65e9fb7427
14 changed files with 54 additions and 55 deletions

2
.vscode/tasks.json vendored
View File

@@ -22,4 +22,4 @@
}
}
]
}
}

View File

@@ -28,7 +28,7 @@ $extrastylesheet
<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_links.js"></script>
</head>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
@@ -39,9 +39,9 @@ $extrastylesheet
<tr id="projectrow">
<td id="projectlogo">
<a id="ns3_home1"
href="https://www.nsnam.org/">
<img alt="ns-3 Logo"
src="$relpath$$projectlogo"/>
href="https://www.nsnam.org/">
<img alt="ns-3 Logo"
src="$relpath$$projectlogo"/>
</a>
</td>
<td id="projecttext">
@@ -54,19 +54,19 @@ $extrastylesheet
<ul >
<li style="background-image:none">
<a id="ns3_home2"
href="https://www.nsnam.org/"
>&nbsp;&nbsp;Home</a>
href="https://www.nsnam.org/"
>&nbsp;&nbsp;Home</a>
</li>
<li><span
onmouseover="mopen('mTuts')"
onmouseout="mclosetime()"
>Tutorials &nbsp;&#x25BC;</span>
<div id="mTuts"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_tut"
href="/docs/tutorial/html/index.html"
>English</a><br/>
>English</a><br/>
</div>
</li>
<li><span
@@ -74,8 +74,8 @@ $extrastylesheet
onmouseout="mclosetime()"
>Documentation &nbsp;&#x25BC;</span>
<div id="mDocs"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_ins"
href="/docs/installation/html/index.html"
>Installation</a><br/>
@@ -98,16 +98,16 @@ $extrastylesheet
onmouseout="mclosetime()"
>Development &nbsp;&#x25BC;</span>
<div id="mDev"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_api"
href="/docs/doxygen/html/index.html"
>API Docs</a><br/>
<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/>
<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/>
</div>
</li>
@@ -121,7 +121,7 @@ $extrastylesheet
</tr>
</tbody>
</table>
<script type="text/javascript">ns3_write_links()</script>
<script type="text/javascript">ns3_write_links()</script>
</div>
<!--END TITLEAREA-->
<!-- end header part -->

View File

@@ -30,9 +30,9 @@
// POSSIBILITY OF SUCH DAMAGE.
//
var timeout = 250;
var closetimer = 0;
var ddmenuitem = 0;
var timeout = 250;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)

View File

@@ -96,7 +96,7 @@ div.sphinxsidebar a {
#projectrow
{
height: 56px;
height: 56px;
}
#projectlogo {

View File

@@ -98,9 +98,9 @@ $(function() {
// find the height of the viewport to center the '<<' in the page
var viewport_height;
if (window.innerHeight)
viewport_height = window.innerHeight;
viewport_height = window.innerHeight;
else
viewport_height = $(window).height();
viewport_height = $(window).height();
sidebarbutton.find('span').css({
'display': 'block',
'margin-top': (viewport_height - sidebar.position().top - 20) / 2

View File

@@ -22,29 +22,28 @@ collapsiblesidebar = false
externalrefs = false
bgcolor = white
textcolor = black
textcolor = black
linkcolor = #91A501
visitedlinkcolor = #91A501
headbgcolor = #E3E3E3
headtextcolor = #373737
headlinkcolor = #91A501
headtextcolor = #373737
headlinkcolor = #91A501
relbarbgcolor = #D5D5D5
relbarbgcolor = #D5D5D5
relbarlinkcolor = #373737
relbartextcolor = #373737
sidebarbgcolor = #FAFAFA
sidebarbgcolor = #FAFAFA
sidebartextcolor = #373737
sidebarlinkcolor = #91A501
sidebarbtncolor = #D5D5D5
footerbgcolor = #D5D5D5
footertextcolor = #364D7C
footertextcolor = #364D7C
codebgcolor = #FBFCFD
codetextcolor = black
bodyfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif
headfont = 'Lucida Grande', Verdana, Geneva, Arial, sans-serif

View File

@@ -16,7 +16,7 @@ for nrbs = [6 15]
npsdv = ones (1,nrbs) * (noise_psd * 10.^(noise_figure_dB/10));
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
name, earfcn, nrbs);
name, earfcn, nrbs);
print_C_vector (npsdv, name);
printf("AddTestCase (new LteNoisePsdTestCase (\"%s\", %d, %d, %f, %s));\n\n", name, earfcn, nrbs, noise_figure_dB, name);

View File

@@ -28,11 +28,11 @@ for run = 1:2
print_C_vector (activeRbs, arname);
printf("SpectrumValue %s (LteSpectrumValueHelper::GetSpectrumModel (%d, %d));\n",
svname, earfcn, nrbs);
svname, earfcn, nrbs);
print_C_vector (txpsd, svname);
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

View File

@@ -9,11 +9,11 @@ ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
nrbsControl = 25; % tx bandwidth configuration in number of RBs
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
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
ndBmData = kT + 10*log10(bwData); % noise power dBm

View File

@@ -7,7 +7,7 @@ close all;
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
nrbs = 25; % tx bandwidth configuration in number of RBs
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
n = kT + 10*log10(bw); % noise power dBm
p = 30; % tx power dBm

View File

@@ -8,7 +8,7 @@ fdl = 2120e6; % DL carrier freq Hz, EARFCN = 100
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
nrbs = 25; % tx bandwidth configuration in number of RBs
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
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", \
d1, d2, d1, d2, dlsinr, ulsinr, dlse, ulse)
d1, d2, d1, d2, dlsinr, ulsinr, dlse, ulse)
endfor

View File

@@ -8,7 +8,7 @@ fdl = 2120e6; % DL carrier freq Hz, EARFCN = 100
ful = 1930e6; % UL carrier freq Hz, EARFCN = 18100
nrbs = 25; % tx bandwidth configuration in number of RBs
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
ndBm = kT + 10*log10(bw); % noise power dBm

View File

@@ -7,7 +7,7 @@ close all;
f = 2160e6; % carrier freq Hz, EARFCN = 500 (downlink)
nrbs = 25; % tx bandwidth configuration in number of RBs
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
n = kT + 10*log10(bw); % noise 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);
x = linspace (0,4000,100);
g1 = gain_freespace(abs (x-1000),f); % propagation gain from
% eNB 1
% eNB 1
g2 = gain_freespace(abs (x-2000),f); % propagation gain from
% eNB 2
% eNB 2
sinr1 = 10.*log10 (pW .* g1 ./ (nW + pW .* g2)); %dB
sinr2 = 10.*log10 (pW .* g2 ./ (nW + pW .* g1)); %dB

View File

@@ -46,19 +46,19 @@ fc = -4;
stepNumToExecute = 12;
fcValueSequence = [
[0, 0];
[-1, 20];
[-1, 20];
[1, 1];
[3, 10];
[1, 15];
[3, 1];
[1, 10];
[1, 10];
[-1, 1];
[-1, 20];
[1, 5]
];
[0, 0];
[-1, 20];
[-1, 20];
[1, 1];
[3, 10];
[1, 15];
[3, 1];
[1, 10];
[1, 10];
[-1, 1];
[-1, 20];
[1, 5]
];
%% distances
%% d1