Skip to content

Commit

Permalink
executed notebooks and html exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrosenzweig committed Dec 16, 2021
1 parent 1aea6ea commit 78e87ee
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions PCP.html
Original file line number Diff line number Diff line change
Expand Up @@ -13115,13 +13115,13 @@ <h1 id="Overview">Overview<a class="anchor-link" href="#Overview">&#182;</a></h1
<a href="https://opensource.org/licenses/MIT"><img src="data_layout/PCP_MIT_License_OSIApproved_text.png" width="70" style="float:right;" alt="CC"></a>

<strong>Note:</strong> The code, text, and figures of the PCP notebooks are licensed under the
<a href="https://opensource.org/licenses/MIT">MIT License</a>. The latest version of the PCP notebooks is hosted on <a href="https://github.com/meinardmueller/PCP">GitHub</a>. Alternatively, you can download a <a href="https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.0.2.zip">zip-compressed archive</a> containing the PCP notebooks and all data. Further details can be found in the [PCP notebook on how to get started](PCP_01_getstarted.html). We try to continuously improve the PCP notebooks and provide updates on a regular basis (current version: 1.0.2). For suggestions and feedback, please contact <a href="https://www.audiolabs-erlangen.de/fau/professor/mueller">Meinard Müller</a>. If you use and want to refer to the PCP notebooks, please cite:
<a href="https://opensource.org/licenses/MIT">MIT License</a>. The latest version of the PCP notebooks is hosted on <a href="https://github.com/meinardmueller/PCP">GitHub</a>. Alternatively, you can download a <a href="https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.1.0.zip">zip-compressed archive</a> containing the PCP notebooks and all data. Further details can be found in the <a href="PCP_01_getstarted.html">PCP notebook on how to get started</a>. We try to continuously improve the PCP notebooks and provide updates on a regular basis (current version: 1.1.0). For suggestions and feedback, please contact <a href="https://www.audiolabs-erlangen.de/fau/professor/mueller">Meinard Müller</a>. If you use and want to refer to the PCP notebooks, please cite:
<br>

<ul>
<li>
<span style="color:black">
Meinard Müller and Sebastian Rosenzweig: <strong>PCP Notebooks: A Preparation Course for Python with a Focus on Signal Processing.</strong> To be submitted to the Journal of Open Source Education.
Meinard Müller and Sebastian Rosenzweig: <strong>PCP Notebooks: A Preparation Course for Python with a Focus on Signal Processing.</strong> The Journal of Open Source Education (JOSE), 2021.
<br>
<a type="button" class="btn btn-default btn-xs" target="_blank" href="data/PCP_bibtex_MuellerR21_PCP_JOSE.txt"> Bibtex </a>
<a type="button" class="btn btn-default btn-xs" target="_blank" href="data/2021_MuellerR_PCP_JOSE_tobesubmitted.pdf"> PDF </a>
Expand Down
2 changes: 1 addition & 1 deletion PCP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"<a href=\"https://opensource.org/licenses/MIT\"><img src=\"data_layout/PCP_MIT_License_OSIApproved_text.png\" width=\"70\" style=\"float:right;\" alt=\"CC\"></a> \n",
" \n",
"<strong>Note:</strong> The code, text, and figures of the PCP notebooks are licensed under the\n",
"<a href=\"https://opensource.org/licenses/MIT\">MIT License</a>. The latest version of the PCP notebooks is hosted on <a href=\"https://github.com/meinardmueller/PCP\">GitHub</a>. Alternatively, you can download a <a href=\"https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.1.0.zip\">zip-compressed archive</a> containing the PCP notebooks and all data. Further details can be found in the [PCP notebook on how to get started](PCP_01_getstarted.html). We try to continuously improve the PCP notebooks and provide updates on a regular basis (current version: 1.1.0). For suggestions and feedback, please contact <a href=\"https://www.audiolabs-erlangen.de/fau/professor/mueller\">Meinard Müller</a>. If you use and want to refer to the PCP notebooks, please cite:\n",
"<a href=\"https://opensource.org/licenses/MIT\">MIT License</a>. The latest version of the PCP notebooks is hosted on <a href=\"https://github.com/meinardmueller/PCP\">GitHub</a>. Alternatively, you can download a <a href=\"https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.1.0.zip\">zip-compressed archive</a> containing the PCP notebooks and all data. Further details can be found in the <a href=\"PCP_01_getstarted.html\">PCP notebook on how to get started</a>. We try to continuously improve the PCP notebooks and provide updates on a regular basis (current version: 1.1.0). For suggestions and feedback, please contact <a href=\"https://www.audiolabs-erlangen.de/fau/professor/mueller\">Meinard Müller</a>. If you use and want to refer to the PCP notebooks, please cite:\n",
"<br>\n",
"\n",
"<ul>\n",
Expand Down
2 changes: 1 addition & 1 deletion PCP_01_getstarted.html
Original file line number Diff line number Diff line change
Expand Up @@ -13156,7 +13156,7 @@ <h2 id="Downloading-PCP-Notebooks-(Option-1):-GitHub">Downloading PCP Notebooks
<p><a id='archive'></a></p>
<h2 id="Downloading-PCP-Notebooks-(Option-2):-AudioLabs-Website">Downloading PCP Notebooks (Option 2): AudioLabs Website<a class="anchor-link" href="#Downloading-PCP-Notebooks-(Option-2):-AudioLabs-Website">&#182;</a></h2><p>Alternatively, you can download a zip-compressed archive containing the PCP notebooks and all data. You can find this archive at</p>
<div class="alert alert-block alert-warning">
<a href="https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.0.2.zip">https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.0.2.zip</a>
<a href="https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.1.0.zip">https://www.audiolabs-erlangen.de/resources/MIR/PCP/PCP_1.1.0.zip</a>
</div><p>Decompress the archive and store it on your local computer.</p>

</div>
Expand Down
6 changes: 3 additions & 3 deletions PCP_02_python.html
Original file line number Diff line number Diff line change
Expand Up @@ -13991,9 +13991,9 @@ <h2 id="Shallow-and-Deep-Copy-Operations">Shallow and Deep Copy Operations<a cla


<div class="output_subarea output_stream output_stdout output_text">
<pre>a = [1, 2, 3] , id(a) = 140256792524112
b = [0, 2, 3, 4] , id(b) = 140256792524112
a = [0, 2, 3, 4] , id(a) = 140256792524112
<pre>a = [1, 2, 3] , id(a) = 140332349275344
b = [0, 2, 3, 4] , id(b) = 140332349275344
a = [0, 2, 3, 4] , id(a) = 140332349275344
</pre>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions PCP_02_python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"a = [1, 2, 3] , id(a) = 140256792524112\n",
"b = [0, 2, 3, 4] , id(b) = 140256792524112\n",
"a = [0, 2, 3, 4] , id(a) = 140256792524112\n"
"a = [1, 2, 3] , id(a) = 140332349275344\n",
"b = [0, 2, 3, 4] , id(b) = 140332349275344\n",
"a = [0, 2, 3, 4] , id(a) = 140332349275344\n"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions PCP_03_numpy.html
Original file line number Diff line number Diff line change
Expand Up @@ -13301,8 +13301,8 @@ <h2 id="NumPy-Arrays">NumPy Arrays<a class="anchor-link" href="#NumPy-Arrays">&#
[1. 1. 1.]]
Evenly spaced values within a given interval: [2 4 6]
Random values in a given shape:
[[0.59659477 0.23174387 0.45871872]
[0.68852614 0.68237738 0.86172377]]
[[0.13600722 0.08576738 0.0503262 ]
[0.93272723 0.06890308 0.99498775]]
Identity matrix:
[[1. 0. 0.]
[0. 1. 0.]
Expand Down Expand Up @@ -14061,8 +14061,8 @@ <h2 id="Exercises-and-Results">Exercises and Results<a class="anchor-link" href=
[16 15 14 6 5 4 0] Type: &lt;class &#39;numpy.ndarray&#39;&gt;
[16 15 14 6 5 4 0] Type: &lt;class &#39;numpy.ndarray&#39;&gt;
[16 15 14 6 5 4 0] Type: &lt;class &#39;numpy.ndarray&#39;&gt;
&lt;reversed object at 0x7fc49f2550d0&gt; Type: &lt;class &#39;reversed&#39;&gt;
&lt;reversed object at 0x7fc49f255490&gt; Type: &lt;class &#39;reversed&#39;&gt;
&lt;reversed object at 0x7fdf321d3290&gt; Type: &lt;class &#39;reversed&#39;&gt;
&lt;reversed object at 0x7fdf31da4b90&gt; Type: &lt;class &#39;reversed&#39;&gt;
</pre>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions PCP_03_numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@
" [1. 1. 1.]]\n",
"Evenly spaced values within a given interval: [2 4 6]\n",
"Random values in a given shape: \n",
"[[0.59659477 0.23174387 0.45871872]\n",
" [0.68852614 0.68237738 0.86172377]]\n",
"[[0.13600722 0.08576738 0.0503262 ]\n",
" [0.93272723 0.06890308 0.99498775]]\n",
"Identity matrix: \n",
"[[1. 0. 0.]\n",
" [0. 1. 0.]\n",
Expand Down Expand Up @@ -864,8 +864,8 @@
"[16 15 14 6 5 4 0] Type: <class 'numpy.ndarray'>\n",
"[16 15 14 6 5 4 0] Type: <class 'numpy.ndarray'>\n",
"[16 15 14 6 5 4 0] Type: <class 'numpy.ndarray'>\n",
"<reversed object at 0x7fc49f2550d0> Type: <class 'reversed'>\n",
"<reversed object at 0x7fc49f255490> Type: <class 'reversed'>\n"
"<reversed object at 0x7fdf321d3290> Type: <class 'reversed'>\n",
"<reversed object at 0x7fdf31da4b90> Type: <class 'reversed'>\n"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions PCP_04_control.html
Original file line number Diff line number Diff line change
Expand Up @@ -13685,9 +13685,9 @@ <h2 id="Efficiency-and-Runtime">Efficiency and Runtime<a class="anchor-link" hre
<pre>Computation with sum_n: n=1000, s=500500
Computation with sum_n_numpy: n=1000, s=500500
Computation with sum_n_math: n=1000, s=500500
Runtime for sum_n: 0.613796 ms
Runtime for sum_n_numpy: 0.029361 ms
Runtime for sum_n_math: 0.000309 ms
Runtime for sum_n: 0.552015 ms
Runtime for sum_n_numpy: 0.023065 ms
Runtime for sum_n_math: 0.000307 ms
</pre>
</div>
</div>
Expand Down Expand Up @@ -13777,7 +13777,7 @@ <h2 id="Exercises-and-Results">Exercises and Results<a class="anchor-link" href=
<pre>default: nan
s=&#39;large&#39;: 1267650600228229401496703205376
s=&#39;small&#39;: 7.888609052210118e-31
s=&#39;random&#39;: 0.024572674463262167
s=&#39;random&#39;: 0.08775106776289154
s=&#39;test&#39;: nan
</pre>
</div>
Expand Down
8 changes: 4 additions & 4 deletions PCP_04_control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@
"Computation with sum_n: n=1000, s=500500\n",
"Computation with sum_n_numpy: n=1000, s=500500\n",
"Computation with sum_n_math: n=1000, s=500500\n",
"Runtime for sum_n: 0.613796 ms\n",
"Runtime for sum_n_numpy: 0.029361 ms\n",
"Runtime for sum_n_math: 0.000309 ms\n"
"Runtime for sum_n: 0.552015 ms\n",
"Runtime for sum_n_numpy: 0.023065 ms\n",
"Runtime for sum_n_math: 0.000307 ms\n"
]
}
],
Expand Down Expand Up @@ -631,7 +631,7 @@
"default: nan\n",
"s='large': 1267650600228229401496703205376\n",
"s='small': 7.888609052210118e-31\n",
"s='random': 0.024572674463262167\n",
"s='random': 0.08775106776289154\n",
"s='test': nan\n"
]
}
Expand Down
2 changes: 1 addition & 1 deletion PCP_06_complex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.YouTubeVideo at 0x7fe85453a9d0>"
"<IPython.lib.display.YouTubeVideo at 0x7fe5b6a74990>"
]
},
"metadata": {},
Expand Down
2 changes: 1 addition & 1 deletion PCP_08_signal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.YouTubeVideo at 0x7fb38b02b090>"
"<IPython.lib.display.YouTubeVideo at 0x7fec836e0dd0>"
]
},
"metadata": {},
Expand Down
10 changes: 5 additions & 5 deletions PCP_09_dft.html
Original file line number Diff line number Diff line change
Expand Up @@ -13794,11 +13794,11 @@ <h2 id="Fast-Fourier-Transform-(FFT)">Fast Fourier Transform (FFT)<a class="anch


<div class="output_subarea output_stream output_stdout output_text">
<pre>Runtime (ms) for N = 256 : DFT 7.35, FFT 0.00968, FFT_np 0.00000665
Runtime (ms) for N = 512 : DFT 16.19, FFT 0.02001, FFT_np 0.00000526
Runtime (ms) for N = 1024 : DFT 63.66, FFT 0.04653, FFT_np 0.00000708
Runtime (ms) for N = 2048 : DFT 276.27, FFT 0.07925, FFT_np 0.00001209
Runtime (ms) for N = 4096 : DFT 809.03, FFT 0.15156, FFT_np 0.00001893
<pre>Runtime (ms) for N = 256 : DFT 7.02, FFT 0.00850, FFT_np 0.00000556
Runtime (ms) for N = 512 : DFT 13.42, FFT 0.01647, FFT_np 0.00000466
Runtime (ms) for N = 1024 : DFT 45.33, FFT 0.03312, FFT_np 0.00000607
Runtime (ms) for N = 2048 : DFT 169.02, FFT 0.06671, FFT_np 0.00001244
Runtime (ms) for N = 4096 : DFT 737.80, FFT 0.13382, FFT_np 0.00001711
</pre>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions PCP_09_dft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,11 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Runtime (ms) for N = 256 : DFT 7.35, FFT 0.00968, FFT_np 0.00000665\n",
"Runtime (ms) for N = 512 : DFT 16.19, FFT 0.02001, FFT_np 0.00000526\n",
"Runtime (ms) for N = 1024 : DFT 63.66, FFT 0.04653, FFT_np 0.00000708\n",
"Runtime (ms) for N = 2048 : DFT 276.27, FFT 0.07925, FFT_np 0.00001209\n",
"Runtime (ms) for N = 4096 : DFT 809.03, FFT 0.15156, FFT_np 0.00001893\n"
"Runtime (ms) for N = 256 : DFT 7.02, FFT 0.00850, FFT_np 0.00000556\n",
"Runtime (ms) for N = 512 : DFT 13.42, FFT 0.01647, FFT_np 0.00000466\n",
"Runtime (ms) for N = 1024 : DFT 45.33, FFT 0.03312, FFT_np 0.00000607\n",
"Runtime (ms) for N = 2048 : DFT 169.02, FFT 0.06671, FFT_np 0.00001244\n",
"Runtime (ms) for N = 4096 : DFT 737.80, FFT 0.13382, FFT_np 0.00001711\n"
]
}
],
Expand Down

0 comments on commit 78e87ee

Please sign in to comment.