Finished lab_2
This commit is contained in:
@@ -0,0 +1,290 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg width="378.883mm" height="244.475mm"
|
||||||
|
viewBox="0 0 1074 693"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
||||||
|
<title>Qt SVG Document</title>
|
||||||
|
<desc>MATLAB, The MathWorks, Inc. Version 26.1.0.3203278 R2026a</desc>
|
||||||
|
<defs>
|
||||||
|
</defs>
|
||||||
|
<g fill="none" stroke="black" stroke-width="1" fill-rule="evenodd" stroke-linecap="square" stroke-linejoin="bevel" >
|
||||||
|
|
||||||
|
<g fill="#ffffff" fill-opacity="1" stroke="none" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family=".AppleSystemUIFont" font-size="13" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<path vector-effect="none" fill-rule="evenodd" d="M263,106 L2373,106 L2373,1462 L263,1462 L263,106"/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#ffffff" fill-opacity="1" stroke="none" transform="matrix(5.08795e-05,0,0,5.11111e-05,-133.839,-54.2111)"
|
||||||
|
font-family=".AppleSystemUIFont" font-size="13" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<path vector-effect="none" fill-rule="evenodd" d="M3.4e+06,1.18e+06 L3.4e+06,1.404e+07 L2.368e+07,1.404e+07 L2.368e+07,1.18e+06 L3.4e+06,1.18e+06"/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,510.549,688.944)"
|
||||||
|
font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="-0.0625" font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>access probability</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 2368,1404 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,118 2368,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 340,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,138.28 340,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="542.8,1404 542.8,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="542.8,138.28 542.8,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="745.6,1404 745.6,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="745.6,138.28 745.6,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="948.4,1404 948.4,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="948.4,138.28 948.4,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1151.2,1404 1151.2,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1151.2,138.28 1151.2,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1354,1404 1354,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1354,138.28 1354,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1556.8,1404 1556.8,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1556.8,138.28 1556.8,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1759.6,1404 1759.6,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1759.6,138.28 1759.6,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1962.4,1404 1962.4,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="1962.4,138.28 1962.4,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2165.2,1404 2165.2,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2165.2,138.28 2165.2,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2368,1404 2368,1383.72 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2368,138.28 2368,118 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,36.3524,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,135.211,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.1</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,238.395,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.2</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,341.578,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.3</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,444.762,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.4</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,547.946,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.5</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,651.129,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.6</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,754.313,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.7</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,857.496,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.8</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,960.68,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.9</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,1068.19,675.144)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>1</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0,-0.511111,0.508795,0,9.64072,361.578)"
|
||||||
|
font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="-0.0625" font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>throughput</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="22" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 340,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2368,1404 2368,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 360.28,1404 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,1404 2368,1404 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1261.11 360.28,1261.11 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,1261.11 2368,1261.11 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1118.22 360.28,1118.22 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,1118.22 2368,1118.22 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,975.333 360.28,975.333 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,975.333 2368,975.333 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,832.444 360.28,832.444 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,832.444 2368,832.444 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,689.556 360.28,689.556 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,689.556 2368,689.556 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,546.667 360.28,546.667 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,546.667 2368,546.667 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,403.778 360.28,403.778 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,403.778 2368,403.778 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,260.889 360.28,260.889 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,260.889 2368,260.889 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,118 360.28,118 " />
|
||||||
|
<polyline fill="none" vector-effect="none" points="2347.72,118 2368,118 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,29.4837,665.944)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,15.2375,592.912)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.05</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,20.8342,519.88)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.1</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,15.2375,446.848)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.15</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,20.8342,373.816)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.2</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,15.2375,300.784)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.25</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,20.8342,227.752)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.3</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,15.2375,154.72)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.35</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,20.8342,81.6876)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.4</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,15.2375,8.65556)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="0.390625" font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>0.45</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="none" stroke="#1171be" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 360.28,1293.08 380.56,1188.82 400.84,1091.01 421.12,999.459 441.4,913.963 461.68,834.33 481.96,760.371 502.24,691.898 522.52,628.726 542.8,570.672 563.08,517.556 583.36,469.202 603.64,425.435 623.92,386.084 644.2,350.98 664.48,319.958 684.76,292.853 705.04,269.505 725.32,249.757 745.6,233.454 765.88,220.443 786.16,210.576 806.44,203.704 826.72,199.684 847,198.375 867.28,199.638 887.56,203.338 907.84,209.341 928.12,217.517 948.4,227.739 968.68,239.881 988.96,253.822 1009.24,269.442 1029.52,286.624 1049.8,305.256 1070.08,325.225 1090.36,346.423 1110.64,368.746 1130.92,392.088 1151.2,416.352 1171.48,441.439 1191.76,467.254 1212.04,493.706 1232.32,520.706 1252.6,548.167 1272.88,576.005 1293.16,604.14 1313.44,632.493 1333.72,660.989 1354,689.556 1374.28,718.122 1394.56,746.622 1414.84,774.99 1435.12,803.164 1455.4,831.087 1475.68,858.701 1495.96,885.954 1516.24,912.793 1536.52,939.172 1556.8,965.045 1577.08,990.37 1597.36,1015.11 1617.64,1039.22 1637.92,1062.67 1658.2,1085.43 1678.48,1107.47 1698.76,1128.76 1719.04,1149.29 1739.32,1169.02 1759.6,1187.95 1779.88,1206.06 1800.16,1223.33 1820.44,1239.75 1840.72,1255.32 1861,1270.04 1881.28,1283.9 1901.56,1296.91 1921.84,1309.06 1942.12,1320.37 1962.4,1330.84 1982.68,1340.49 2002.96,1349.33 2023.24,1357.39 2043.52,1364.67 2063.8,1371.21 2084.08,1377.02 2104.36,1382.15 2124.64,1386.62 2144.92,1390.46 2165.2,1393.71 2185.48,1396.42 2205.76,1398.62 2226.04,1400.35 2246.32,1401.68 2266.6,1402.64 2286.88,1403.3 2307.16,1403.7 2327.44,1403.91 2347.72,1403.99 2368,1404 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="none" stroke="#dd5400" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="340,1404 360.28,1278.26 380.56,1203.96 400.84,1106.79 421.12,938.182 441.4,915.32 461.68,841.018 481.96,835.302 502.24,738.138 522.52,560.956 542.8,638.116 563.08,475.222 583.36,498.084 603.64,349.48 623.92,349.48 644.2,343.764 664.48,229.453 684.76,238.027 705.04,312.329 725.32,246.6 745.6,278.036 765.88,232.311 786.16,172.298 806.44,169.44 826.72,198.018 847,235.169 867.28,200.876 887.56,218.022 907.84,186.587 928.12,166.582 948.4,172.298 968.68,203.733 988.96,192.302 1009.24,292.324 1029.52,246.6 1049.8,335.191 1070.08,235.169 1090.36,243.742 1110.64,403.778 1130.92,409.493 1151.2,492.369 1171.48,423.782 1191.76,503.8 1212.04,500.942 1232.32,498.084 1252.6,569.529 1272.88,560.956 1293.16,586.676 1313.44,609.538 1333.72,629.542 1354,686.698 1374.28,763.858 1394.56,763.858 1414.84,755.284 1435.12,792.436 1455.4,801.009 1475.68,886.742 1495.96,912.462 1516.24,929.609 1536.52,1018.2 1556.8,978.191 1577.08,1018.2 1597.36,998.196 1617.64,1095.36 1637.92,1069.64 1658.2,1072.5 1678.48,1103.93 1698.76,1129.65 1719.04,1169.66 1739.32,1212.53 1759.6,1169.66 1779.88,1206.81 1800.16,1223.96 1820.44,1252.54 1840.72,1298.26 1861,1272.54 1881.28,1261.11 1901.56,1292.55 1921.84,1318.27 1942.12,1321.12 1962.4,1346.84 1982.68,1355.42 2002.96,1326.84 2023.24,1329.7 2043.52,1355.42 2063.8,1384 2084.08,1381.14 2104.36,1378.28 2124.64,1384 2144.92,1401.14 2165.2,1386.85 2185.48,1392.57 2205.76,1404 2226.04,1392.57 2246.32,1404 2266.6,1401.14 2286.88,1404 2307.16,1404 2327.44,1404 2347.72,1404 2368,1404 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#ffffff" fill-opacity="1" stroke="none" transform="matrix(5.08795e-05,0,0,5.11111e-05,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<path vector-effect="none" fill-rule="evenodd" d="M2.192e+07,1.34e+06 L2.192e+07,1.83e+06 L2.352e+07,1.83e+06 L2.352e+07,1.34e+06 L2.192e+07,1.34e+06"/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#1171be" fill-opacity="1" stroke="#1171be" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="2197.98,147.569 2257.79,147.569 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#dd5400" fill-opacity="1" stroke="#dd5400" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="round" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="20" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<polyline fill="none" vector-effect="none" points="2197.98,169.431 2257.79,169.431 " />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,1017.2,23.7687)"
|
||||||
|
font-family="Helvetica" font-size="18" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="-0.140625" font-family="Helvetica" font-size="18" font-weight="400" font-style="normal"
|
||||||
|
>theoretical</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="#212121" fill-opacity="1" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(0.508795,0,0,0.511111,1017.2,34.9424)"
|
||||||
|
font-family="Helvetica" font-size="18" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<text fill="#212121" fill-opacity="1" stroke="none" xml:space="preserve" x="0" y="-0.140625" font-family="Helvetica" font-size="18" font-weight="400" font-style="normal"
|
||||||
|
>simulation</text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g fill="none" stroke="#212121" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="5" transform="matrix(0.508795,0,0,0.511111,-133.839,-54.2111)"
|
||||||
|
font-family="Helvetica" font-size="18" font-weight="400" font-style="normal"
|
||||||
|
>
|
||||||
|
<path vector-effect="none" fill-rule="evenodd" d="M2192,183 L2192,134 L2352,134 L2352,183 L2192,183"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,67 @@
|
|||||||
|
# Simulation of Slotted ALOHA Throughput Report
|
||||||
|
|
||||||
|
**Timo Niemann**
|
||||||
|
|
||||||
|
## Goal
|
||||||
|
|
||||||
|
The goal of this simulation is to analyze the throughput behavior of Slotted ALOHA for a fixed number of senders. For every access probability `p`, each sender independently decides whether to transmit in the current time slot. A slot is successful only if exactly one sender transmits. Empty slots and collisions do not contribute to the throughput.
|
||||||
|
|
||||||
|
## Simulation Setup
|
||||||
|
|
||||||
|
| Parameter | Value |
|
||||||
|
|---|---|
|
||||||
|
| `number_of_senders` | `4` |
|
||||||
|
| `number_of_timeslots` | `1000` |
|
||||||
|
| `access_probability` | `0:0.01:1` |
|
||||||
|
| slot result | `1 = successful transmission`, `0 = no successful transmission` |
|
||||||
|
|
||||||
|
## Throughput Formula
|
||||||
|
|
||||||
|
For `n` independent senders, the theoretical throughput is the probability that exactly one sender transmits in a slot:
|
||||||
|
|
||||||
|
```text
|
||||||
|
throughput = np(1 - p)^(n - 1)
|
||||||
|
```
|
||||||
|
|
||||||
|
With `n = 4`, this becomes:
|
||||||
|
|
||||||
|
```text
|
||||||
|
throughput = 4p(1 - p)^3
|
||||||
|
```
|
||||||
|
|
||||||
|
The theoretical maximum is reached at:
|
||||||
|
|
||||||
|
```text
|
||||||
|
p = 1 / n = 0.25
|
||||||
|
```
|
||||||
|
|
||||||
|
Therefore, the maximum theoretical throughput is:
|
||||||
|
|
||||||
|
```text
|
||||||
|
throughput(0.25) = 4 * 0.25 * 0.75^3 = 0.421875
|
||||||
|
```
|
||||||
|
|
||||||
|
## Throughput Curve Plot
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Figure 1:** Simulated and theoretical throughput curve for four senders.
|
||||||
|
|
||||||
|
## Maximum Coordinates
|
||||||
|
|
||||||
|
| Curve | Maximum coordinate |
|
||||||
|
|---|---|
|
||||||
|
| Theoretical | `p = 0.25`, throughput `= 0.421875` |
|
||||||
|
| Simulation | approximately `p = 0.28` to `0.30`, throughput `≈ 0.43` in the shown run |
|
||||||
|
|
||||||
|
## Comparison with the Theoretical Formula
|
||||||
|
|
||||||
|
The theoretical curve is smooth because it is calculated directly from the probability formula. The simulated curve follows the same overall shape, but it is not perfectly smooth because only `1000` time slots are simulated for each probability value. Therefore, random variation is still visible.
|
||||||
|
|
||||||
|
The important behavior matches the theory. At low access probabilities, the throughput is low because most slots are empty. As `p` increases, successful transmissions become more likely and the throughput rises. Around `p = 0.25`, the system reaches its best operating region. After that point, too many senders transmit in the same slot, so collisions become more frequent and the throughput decreases.
|
||||||
|
|
||||||
|
The simulated maximum is slightly shifted and slightly higher than the theoretical maximum in the shown run. This is expected for a finite simulation. With more time slots per probability value, the simulated curve should become smoother and the maximum should move closer to the theoretical coordinate `p = 0.25`, `S = 0.421875`.
|
||||||
|
|
||||||
|
## Conclusion
|
||||||
|
|
||||||
|
The simulation correctly reproduces the characteristic Slotted ALOHA throughput curve. The best throughput is obtained when the access probability is close to `1 / n`. For four senders, this is `p = 0.25`. Below this value, the channel is underused. Above this value, collisions dominate increasingly. The comparison shows that the implementation is consistent with the theoretical formula, while the visible deviations are caused by finite random sampling.
|
||||||
Binary file not shown.
+19
-10
@@ -4,25 +4,34 @@ access_probability = 0:0.01:1;
|
|||||||
|
|
||||||
access_probability_length = length(access_probability);
|
access_probability_length = length(access_probability);
|
||||||
|
|
||||||
sender_rands = zeros(number_of_senders);
|
sender_access = zeros(number_of_senders);
|
||||||
% | slot1 | slot
|
|
||||||
% prob1 |
|
% | slot1 | slot2 | ...
|
||||||
|
% prob1 | | | ...
|
||||||
|
% prob2 | | | ...
|
||||||
|
% ... | ... | ... | ...
|
||||||
result = zeros(access_probability_length, number_of_timeslots);
|
result = zeros(access_probability_length, number_of_timeslots);
|
||||||
|
|
||||||
% simulate all time slots on each probability
|
% simulate all time slots on each probability
|
||||||
for probability_idx = 1 : access_probability_length
|
for probability_idx = 1 : access_probability_length
|
||||||
|
|
||||||
current_result = zeros(access_probability_length);
|
current_result = zeros(1, number_of_timeslots);
|
||||||
probability = access_probability(probability_idx);
|
probability = access_probability(probability_idx);
|
||||||
|
|
||||||
for i = 1 : number_of_timeslots
|
for time_slot = 1 : number_of_timeslots
|
||||||
% generate random sender accesses
|
% generate random sender accesses by probability
|
||||||
for j = 1 : number_of_senders
|
sender_access = zeros(1, number_of_senders);
|
||||||
sender_rands(j) = rand();
|
for sender = 1 : number_of_senders
|
||||||
|
if rand() < access_probability(probability_idx)
|
||||||
|
sender_access(1, sender) = 1;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
current_result(1, time_slot) = sum(sender_access(1, :)) == 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
result(probability_idx, :) = current_result;
|
result(probability_idx, :) = current_result;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
disp(result(floor(access_probability_length / 2), 1:100))
|
||||||
|
plot(result);
|
||||||
+11
-8
@@ -6,11 +6,8 @@ access_probability_length = length(access_probability);
|
|||||||
|
|
||||||
sender_access = zeros(number_of_senders);
|
sender_access = zeros(number_of_senders);
|
||||||
|
|
||||||
% | slot1 | slot2 | ...
|
simulated_throughput = zeros(1, access_probability_length);
|
||||||
% prob1 | | | ...
|
estimated_throughput = zeros(1, access_probability_length);
|
||||||
% prob2 | | | ...
|
|
||||||
% ... | ... | ... | ...
|
|
||||||
result = zeros(access_probability_length, number_of_timeslots);
|
|
||||||
|
|
||||||
% simulate all time slots on each probability
|
% simulate all time slots on each probability
|
||||||
for probability_idx = 1 : access_probability_length
|
for probability_idx = 1 : access_probability_length
|
||||||
@@ -29,8 +26,14 @@ for probability_idx = 1 : access_probability_length
|
|||||||
|
|
||||||
current_result(1, time_slot) = sum(sender_access(1, :)) == 1;
|
current_result(1, time_slot) = sum(sender_access(1, :)) == 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
result(probability_idx, :) = current_result;
|
simulated_throughput(probability_idx) = mean(current_result);
|
||||||
|
estimated_throughput(probability_idx) = number_of_senders * probability * (1 - probability)^(number_of_senders - 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
disp(result(floor(access_probability_length / 2), 1:100))
|
plot(access_probability, estimated_throughput)
|
||||||
|
hold on
|
||||||
|
plot(access_probability, simulated_throughput)
|
||||||
|
legend("theoretical", "simulation")
|
||||||
|
xlabel("access probability")
|
||||||
|
ylabel("throughput")
|
||||||
Reference in New Issue
Block a user