01-g-h-filter.ipynb: minor fix

- Exercise Bad Initial Conditions: update the condition with the solution
- Exercise Extreme Noise: update solution parameter h to 0.01 (same as previous ex.)
This commit is contained in:
Yan Pivnev 2018-01-24 11:24:48 +03:00
parent 83f38acc79
commit 75b0fe0ea5

View File

@ -3680,7 +3680,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now write code that uses `gen_data` and `g_h_filter` to filter 100 data points that starts at 5, has a derivative of 2, a noise scaling factor of 10, and uses g=0.2 and h=0.02. Set you initial guess for x to be 100."
"Now write code that uses `gen_data` and `g_h_filter` to filter 100 data points that starts at 5, has a derivative of 2, a noise scaling factor of 10, and uses g=0.2 and h=0.01. Set you initial guess for x to be 100."
]
},
{
@ -3780,7 +3780,7 @@
],
"source": [
"zs = gen_data(x0=5., dx=2., count=100, noise_factor=100)\n",
"data = g_h_filter(data=zs, x0=5., dx=2., g=0.2, h=0.02)\n",
"data = g_h_filter(data=zs, x0=5., dx=2., g=0.2, h=0.01)\n",
"plot_g_h_results(measurements=zs, filtered_data=data)"
]
},