unmyelinated_results.linfit_AP

unmyelinated_results.linfit_AP(x_AP: ndarray[tuple[Any, ...], dtype[_ScalarT]], t_AP: ndarray[tuple[Any, ...], dtype[_ScalarT]]) poly1d

Fit the AP with two 1D polynomial equations: one for the upward propagation, one for the downward propagation

Parameters:
  • x_AP (NDArray) – x positions of the AP

  • t_AP (NDArray) – t positions of the AP

Returns:

  • np.poly1d – AP upward direction 1D poly fit

  • np.poly1d – AP downward direction 1D poly fit