diff options
Diffstat (limited to 'notebooks')
-rw-r--r-- | notebooks/BER .ipynb | 171 | ||||
-rw-r--r-- | notebooks/FIR_mehrere_V2.ipynb | 23 | ||||
-rw-r--r-- | notebooks/FrameSynchronization.ipynb | 4 |
3 files changed, 194 insertions, 4 deletions
diff --git a/notebooks/BER .ipynb b/notebooks/BER .ipynb new file mode 100644 index 0000000..8e0a6f4 --- /dev/null +++ b/notebooks/BER .ipynb @@ -0,0 +1,171 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "ec5412d2", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np \n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "be1f0d01", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([0, 1])" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "byte1= np.array([0x12, 0xe3, 0x9b])\n", + "byte2 = np.array([0x12, 0xe3, 0x9c])\n", + "b1 = np.array([0,0])\n", + "b2 = np.array([0,1])\n", + "b1\n", + "b2" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "c256a3d0", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0 0 7]\n" + ] + }, + { + "data": { + "text/plain": [ + "array([0, 1], dtype=uint8)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "v = byte1^byte2\n", + "v1 = np.array (v,dtype = np.uint8)\n", + "print(v1)\n", + "v2 = b1^b2\n", + "v2 = np.array (v2,dtype = np.uint8)\n", + "v2" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "227f0142", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1]\n" + ] + }, + { + "data": { + "text/plain": [ + "array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], dtype=uint8)" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "z = np.unpackbits(v1)\n", + "print(z)\n", + "z1 = np.unpackbits(v2)\n", + "z1" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "092d8dae", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "3" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "a = sum(z)\n", + "a" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0ac2e304", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "034142b6", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f203fbce", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/notebooks/FIR_mehrere_V2.ipynb b/notebooks/FIR_mehrere_V2.ipynb index 6fbcf3b..9fdea2e 100644 --- a/notebooks/FIR_mehrere_V2.ipynb +++ b/notebooks/FIR_mehrere_V2.ipynb @@ -2,6 +2,7 @@ "cells": [ { "cell_type": "markdown", + "id": "c377e559", "metadata": {}, "source": [ "# FIR Filter Parameters" @@ -10,6 +11,7 @@ { "cell_type": "code", "execution_count": 1, + "id": "f14e4383", "metadata": {}, "outputs": [], "source": [ @@ -21,6 +23,7 @@ { "cell_type": "code", "execution_count": 2, + "id": "e8e2130b", "metadata": {}, "outputs": [], "source": [ @@ -31,6 +34,7 @@ }, { "cell_type": "markdown", + "id": "d39d7698", "metadata": {}, "source": [ "# Dealy Window\n" @@ -39,6 +43,7 @@ { "cell_type": "code", "execution_count": 3, + "id": "bd005466", "metadata": {}, "outputs": [ { @@ -66,6 +71,7 @@ { "cell_type": "code", "execution_count": 4, + "id": "e48a4dbd", "metadata": {}, "outputs": [ { @@ -96,6 +102,7 @@ }, { "cell_type": "markdown", + "id": "0ddadf5d", "metadata": {}, "source": [ "# FIR" @@ -104,6 +111,7 @@ { "cell_type": "code", "execution_count": 5, + "id": "bd6d61b3", "metadata": {}, "outputs": [], "source": [ @@ -119,6 +127,7 @@ { "cell_type": "code", "execution_count": 6, + "id": "ef41b7d8", "metadata": {}, "outputs": [], "source": [ @@ -129,6 +138,7 @@ { "cell_type": "code", "execution_count": 7, + "id": "fea2ae61", "metadata": {}, "outputs": [ { @@ -166,6 +176,7 @@ { "cell_type": "code", "execution_count": 8, + "id": "a65b4b37", "metadata": {}, "outputs": [ { @@ -186,6 +197,7 @@ { "cell_type": "code", "execution_count": 9, + "id": "ce9b4835", "metadata": {}, "outputs": [ { @@ -206,6 +218,7 @@ { "cell_type": "code", "execution_count": 10, + "id": "fc67f0a5", "metadata": {}, "outputs": [ { @@ -226,6 +239,7 @@ }, { "cell_type": "markdown", + "id": "35e1aaef", "metadata": {}, "source": [ "# FIR mit Delay \n" @@ -234,6 +248,7 @@ { "cell_type": "code", "execution_count": 58, + "id": "d8986bc9", "metadata": {}, "outputs": [ { @@ -302,6 +317,7 @@ { "cell_type": "code", "execution_count": 25, + "id": "d39528be", "metadata": {}, "outputs": [ { @@ -356,6 +372,7 @@ { "cell_type": "code", "execution_count": 26, + "id": "b6f61760", "metadata": {}, "outputs": [ { @@ -429,6 +446,7 @@ { "cell_type": "code", "execution_count": 14, + "id": "52c30c0f", "metadata": {}, "outputs": [ { @@ -450,6 +468,7 @@ { "cell_type": "code", "execution_count": null, + "id": "356ce18c", "metadata": {}, "outputs": [], "source": [] @@ -457,7 +476,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -471,7 +490,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.5" + "version": "3.9.2" } }, "nbformat": 4, diff --git a/notebooks/FrameSynchronization.ipynb b/notebooks/FrameSynchronization.ipynb index 911ddd6..27e615c 100644 --- a/notebooks/FrameSynchronization.ipynb +++ b/notebooks/FrameSynchronization.ipynb @@ -216,7 +216,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -230,7 +230,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.11" + "version": "3.9.2" } }, "nbformat": 4, |