Skip to content

Commit

Permalink
minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
KoraTMontemagno authored and LegrandNico committed Aug 9, 2024
1 parent f0f3869 commit bddf4aa
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
{
"cell_type": "code",
"execution_count": 76,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 77,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -66,7 +66,7 @@
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -108,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand All @@ -124,15 +124,15 @@
],
"source": [
"np.random.seed(43)\n",
"\n",
"high_noise = 3\n",
"a = 19 # setting an arbitrary threshold\n",
"\n",
"u1 = np.zeros(len(u2))\n",
"for i in range(len(u2)):\n",
" if u2[i] > a:\n",
" u1[i] = u2[i]\n",
" else:\n",
" u1[i] = 0\n",
"\n",
"u1 = u1 + (np.random.normal(0, high_noise, 1000))\n",
"\n",
"# plot the signal\n",
Expand All @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -196,7 +196,7 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -259,10 +259,10 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.sources.Source at 0x2c8b01175c0>"
"<graphviz.sources.Source at 0x24b5b134fe0>"
]
},
"execution_count": 81,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -301,7 +301,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -325,7 +325,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -388,10 +388,10 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.sources.Source at 0x2c8b4044770>"
"<graphviz.sources.Source at 0x24b38cf1f70>"
]
},
"execution_count": 83,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -423,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -436,7 +436,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand All @@ -449,7 +449,7 @@
" dtype=object)"
]
},
"execution_count": 85,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -490,16 +490,16 @@
},
{
"cell_type": "code",
"execution_count": 92,
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x2c8b1a2a060>"
"<matplotlib.legend.Legend at 0x24b58d0f140>"
]
},
"execution_count": 92,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
},
Expand Down

0 comments on commit bddf4aa

Please sign in to comment.