Work on EKF chapter.

Started developing EKF chapter. Stalled - not sure what is the best
initial example to develop. Air drag seems unnecessarily 'mathy',
but then you need diff eq to compute Jacobians.
This commit is contained in:
Roger Labbe committed 2014-07-19 00:14:32 -07:00
1 parent 7b9c6c4409
commit b9f462678d
5 files changed
+307 -25

No files matched your search

+3
View File
@@ -50,6 +50,9 @@ def rk4(y, x, dx, f):
return y + (k1 + 2*k2 + 2*k3 + k4) / 6
def rk2 (y,x,dx,f):
"""computes the 2nd order Runge-kutta for dy/dx"""
+1
View File
@@ -156,6 +156,7 @@ class BaseballPath(object):
# force due to air drag
v_x_wind = self.v_x - vel_wind
v = sqrt (v_x_wind**2 + self.v_y**2)
F = self.drag_force(v)