Skip to content

Commit

Permalink
Issue rlabbe#50 dt**4 should be dt**3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlabbe committed Sep 10, 2016
1 parent db9348e commit 1b298ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filterpy/common/discretization.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def Q_continuous_white_noise(dim, dt=1., spectral_density=1.):

assert dim == 2 or dim == 3
if dim == 2:
Q = array([[(dt**4)/3, (dt**2)/2],
Q = array([[(dt**3)/3, (dt**2)/2],
[(dt**2)/2, dt]])
else:
Q = array([[(dt**5)/20, (dt**4)/8, (dt**3)/6],
Expand Down

0 comments on commit 1b298ff

Please sign in to comment.