Commit 735777a9 authored by Ivan Tyagov's avatar Ivan Tyagov

Show numbers below graphs for these notebooks.

parent 4c1771ad
...@@ -10,18 +10,19 @@ ...@@ -10,18 +10,19 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 3,
"id": "a19f317d", "id": "a19f317d",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"import pandas as pd" "import pandas as pd\n",
"import statistics"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 4,
"id": "b9dad676", "id": "b9dad676",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 5,
"id": "d0d49bb0", "id": "d0d49bb0",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
...@@ -49,7 +50,7 @@ ...@@ -49,7 +50,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 6,
"id": "16a57b80", "id": "16a57b80",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
...@@ -75,7 +76,60 @@ ...@@ -75,7 +76,60 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 7,
"id": "4f6fb982",
"metadata": {},
"outputs": [],
"source": [
"timestamp_channel0_delta_list = lines\n",
"round_base=5\n",
"channel0_mean = statistics.mean(timestamp_channel0_delta_list)\n",
"channel0_median =statistics.median(timestamp_channel0_delta_list)\n",
"channel0_stdev = statistics.stdev(timestamp_channel0_delta_list)\n",
"channel0_stdev_percentile = (channel0_stdev * 100) / channel0_median\n",
"try:\n",
" channel0_mode = statistics.mode(timestamp_channel0_delta_list)\n",
"except statistics.StatisticsError:\n",
" channel0_mode = None\n",
"channel0_min = min(timestamp_channel0_delta_list)\n",
"channel0_max = max(timestamp_channel0_delta_list)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "eb6eccb1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Coupler0 (in milli seconds):\n",
"\tMean = 5.01265\n",
"\tMedian = 5.2135\n",
"\tMin = 1.57323\n",
"\tMax = 36.26763\n",
"\tStandart deviation = 0.88046\n",
"\tStandart deviation (%) = 16.88809\n",
"\tMode (most occurencies) = 5.09803\n"
]
}
],
"source": [
"print(\"Coupler0 (in milli seconds):\")\n",
"print(\"\\tMean = \", round(channel0_mean, round_base))\n",
"print(\"\\tMedian = \", round(channel0_median, round_base))\n",
"print(\"\\tMin = \", round(channel0_min, round_base))\n",
"print(\"\\tMax = \", round(channel0_max, round_base))\n",
"print(\"\\tStandart deviation = \", round(channel0_stdev, round_base))\n",
"print(\"\\tStandart deviation (%) = \", round(channel0_stdev_percentile, round_base))\n",
"print(\"\\tMode (most occurencies) = \", round(channel0_mode, round_base))"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "1b5ee5ae", "id": "1b5ee5ae",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
...@@ -88,7 +142,7 @@ ...@@ -88,7 +142,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": 10,
"id": "18f16b77", "id": "18f16b77",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
...@@ -118,10 +172,63 @@ ...@@ -118,10 +172,63 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 11,
"id": "552fc7b3", "id": "552fc7b3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [
"timestamp_channel1_delta_list = lines\n",
"channel1_mean = statistics.mean(timestamp_channel1_delta_list)\n",
"channel1_median =statistics.median(timestamp_channel1_delta_list)\n",
"channel1_stdev = statistics.stdev(timestamp_channel1_delta_list)\n",
"channel1_stdev_percentile = (channel1_stdev * 100) / channel1_median\n",
"try:\n",
" channel1_mode = statistics.mode(timestamp_channel1_delta_list)\n",
"except statistics.StatisticsError:\n",
" channel1_mode = None\n",
"channel1_min = min(timestamp_channel1_delta_list)\n",
"channel1_max = max(timestamp_channel1_delta_list)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "d6673dd1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Coupler1 (in milli seconds):\n",
"\tMean = 5.03696\n",
"\tMedian = 5.34774\n",
"\tMin = 1.76327\n",
"\tMax = 91.09253\n",
"\tStandart deviation = 1.05025\n",
"\tStandart deviation (%) = 19.63915\n",
"\tMode (most occurencies) = 4.07077\n"
]
}
],
"source": [
"print(\"\\nCoupler1 (in milli seconds):\")\n",
"print(\"\\tMean = \", round(channel1_mean, round_base))\n",
"print(\"\\tMedian = \", round(channel1_median, round_base))\n",
"print(\"\\tMin = \", round(channel1_min, round_base))\n",
"print(\"\\tMax = \", round(channel1_max, round_base))\n",
"print(\"\\tStandart deviation = \", round(channel1_stdev, round_base))\n",
"print(\"\\tStandart deviation (%) = \", round(channel1_stdev_percentile, round_base))\n",
"print(\"\\tMode (most occurencies) = \", round(channel1_mode, round_base))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "214c6aee",
"metadata": {},
"outputs": [],
"source": [] "source": []
} }
], ],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment