Skip to content

Commit fa2864f

Browse files
committed
fixed typo'
1 parent 6dfe23a commit fa2864f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynumdiff/kalman_smooth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def rtsdiff(x, dt_or_t, order, log_qr_ratio, forwardbackward=False, axis=0, circ
147147
Q_d[n] = eM[:order+1, order+1:] @ A_d[n].T
148148
if forwardbackward: A_d_bwd = np.linalg.inv(A_d[::-1]) # properly broadcasts, taking inv of each stacked 2D array
149149

150-
innovation_fn = (lambda y, pred: (y - pred + np.pi) % (2*np.pi) - np.pi) if circular else None # optionall wrap innovation to [-pi, pi], see #178
150+
innovation_fn = (lambda y, pred: (y - pred + np.pi) % (2*np.pi) - np.pi) if circular else None # optionally wrap innovation to [-pi, pi], see #178
151151

152152
x_hat = np.empty_like(x); dxdt_hat = np.empty_like(x)
153153
if forwardbackward: w = np.linspace(0, 1, N) # weights used to combine forward and backward results

0 commit comments

Comments
 (0)