firstOrderFiniteDifference#

pyCGM2.Math.derivation.firstOrderFiniteDifference(values: ndarray, sampleFrequency: int) ndarray#

First-order differentiation of an array using finite difference method.

Parameters:
  • values (np.ndarray) – Array of values to differentiate.

  • sampleFrequency (int) – Sampling frequency of the data.

Returns:

np.ndarray – First-order derivative values.