Skip to content

Commit 64f873a

Browse files
committed
Fixed alignment of measurements #300
Measurements should start at day 0, not day 1.
1 parent 9bbe106 commit 64f873a

File tree

2 files changed

+47
-14
lines changed

2 files changed

+47
-14
lines changed

01-g-h-filter.ipynb

Lines changed: 46 additions & 13 deletions
Large diffs are not rendered by default.

kf_book/gh_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def plot_gh_results(weights, estimates, predictions, actual, time_step=0):
179179
else:
180180
rng = range(n, n+1)
181181
xs = range(n+1)
182-
book_plots.plot_measurements(xs[1:], weights, color='k', lines=False)
182+
book_plots.plot_measurements(weights, color='k', lines=False)
183183
book_plots.plot_filter(xs, estimates, marker='o', label='Estimates')
184184
book_plots.plot_track(xs[1:], predictions, c='r', marker='v', label='Predictions')
185185
plt.plot([xs[0], xs[-1]], actual, c='k', lw=1, label='Actual')

0 commit comments

Comments
 (0)