Skip to content

Commit 1392e48

Browse files
committed
addressing #68 for the kalman module, discovering bugs in the process
1 parent b171ac5 commit 1392e48

2 files changed

Lines changed: 222 additions & 605 deletions

File tree

pynumdiff/finite_difference/_finite_difference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _iterate_first_order(x, dt, num_iterations):
6868
- **x_hat** -- estimated (smoothed) x
6969
- **dxdt_hat** -- estimated derivative of x
7070
"""
71-
w = np.arange(len(x)) / (len(x) - 1) # set up weights, [0., ... 1.0]
71+
w = np.linspace(0, 1, len(x)) # set up weights, [0., ... 1.0]
7272

7373
# forward backward passes
7474
for _ in range(num_iterations):

0 commit comments

Comments
 (0)