Merge pull request #44 from dduong42/master

Add `dt` to the argument list.
This commit is contained in:
Roger Labbe 2015-05-23 12:16:49 -07:00
commit 78d5644769

View File

@ -1357,7 +1357,7 @@
"source": [
"In the example above, I explicitly coded this to solve the weighing problem that we've been discussing throughout the chapter. For example, the variables are named \"weight_scale\", \"gain\", and so on. I did this to make the algorithm easy to follow - you can easily see that we correctly implemented each step. But, that is code written for exactly one problem, and the algorithm is the same for any problem. So let's rewrite the code to be generic - to work with any problem. Use this function signature:\n",
"\n",
" def g_h_filter(data, x0, dx, g, h):\n",
" def g_h_filter(data, x0, dx, g, h, dt):\n",
" \"\"\"\n",
" Performs g-h filter on 1 state variable with a fixed g and h.\n",
"\n",