Skip to content

Commit d06a564

Browse files
committed
fine touches to docstrings
1 parent 63b4f2a commit d06a564

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pynumdiff/kalman_smooth/_kalman_smooth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def kalman_filter(y, _t, xhat0, P0, A, Q, C, R, B=None, u=None, save_P=True):
88
99
:param np.array y: series of measurements, stacked along axis 0.
1010
:param float or array[float] _t: This function supports variable step size. This parameter is either the constant
11-
dt if given as a single float, or data locations if given as an array of same length as :code:`x`.
11+
dt if given as a single float, or sample locations if given as an array of same length as :code:`x`.
1212
:param np.array xhat0: a priori guess of initial state at the time of the first measurement
1313
:param np.array P0: a priori guess of state covariance at the time of first measurement (often identity matrix)
1414
:param np.array A: state transition matrix, in discrete time if constant dt, in continuous time if variable dt
@@ -77,7 +77,7 @@ def rts_smooth(_t, A, xhat_pre, xhat_post, P_pre, P_post, compute_P_smooth=True)
7777
"""Perform Rauch-Tung-Striebel smoothing, using information from forward Kalman filtering.
7878
7979
:param float or array[float] _t: This function supports variable step size. This parameter is either the constant
80-
dt if given as a single float, or data locations if given as an array of same length as :code:`x`.
80+
dt if given as a single float, or sample locations if given as an array of same length as the state histories.
8181
:param np.array A: state transition matrix, in discrete time if constant dt, in continuous time if variable dt
8282
:param list[np.array] xhat_pre: a priori estimates of xhat from a kalman_filter forward pass
8383
:param list[np.array] xhat_post: a posteriori estimates of xhat from a kalman_filter forward pass

pynumdiff/linear_model/_linear_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def rbfdiff(x, _t, sigma=1, lmbd=0.01):
238238
239239
:param np.array[float] x: data to differentiate
240240
:param float or array[float] _t: This function supports variable step size. This parameter is either the constant
241-
dt if given as a single float, or data locations if given as an array of same length as :code:`x`.
241+
:math:`\\Delta t` if given as a single float, or data locations if given as an array of same length as :code:`x`.
242242
:param float sigma: controls width of radial basis function
243243
:param float lmbd: controls strength of bias toward data
244244

pynumdiff/polynomial_fit/_polynomial_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def splinediff(x, _t, params=None, options={}, degree=3, s=None, num_iterations=
1111
1212
:param np.array[float] x: data to differentiate
1313
:param float or array[float] _t: This function supports variable step size. This parameter is either the constant
14-
dt if given as a single float, or data locations if given as an array of same length as :code:`x`.
14+
:math:`\\Delta t` if given as a single float, or data locations if given as an array of same length as :code:`x`.
1515
:param list params: (**deprecated**, prefer :code:`degree`, :code:`cutoff_freq`, and :code:`num_iterations`)
1616
:param dict options: (**deprecated**, prefer :code:`num_iterations`) an empty dictionary or {'iterate': (bool)}
1717
:param int degree: polynomial degree of the spline. A kth degree spline can be differentiated k times.

0 commit comments

Comments
 (0)