Add dt
to the argument list.
This commit is contained in:
parent
6334c3eaa9
commit
4c05ec2b49
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user