From 75b0fe0ea50caef2b5877fd5b78858c6ab339c11 Mon Sep 17 00:00:00 2001 From: Yan Pivnev Date: Wed, 24 Jan 2018 11:24:48 +0300 Subject: [PATCH] 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.) --- 01-g-h-filter.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01-g-h-filter.ipynb b/01-g-h-filter.ipynb index 40c3678..fb676a7 100644 --- a/01-g-h-filter.ipynb +++ b/01-g-h-filter.ipynb @@ -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)" ] },