function finite_difference_coefficients¶
- deeptime.util.diff.finite_difference_coefficients(x_bar, xs, k=1)¶
Calculates finite difference coefficients. The coefficients are computed so that
It is required that len(x) > k.
See here for details.
- Parameters:
x_bar (float) – The evaluation point of the derivative.
xs (ndarray of float) – grid points so that .
k (int, default=1) – k-th derivative.
- Returns:
weights – An array w with weights so that the dot product is approximately the function’s k-th derivative at .
- Return type:
ndarray