axon_results.linfit_AP

axon_results.linfit_AP(x_AP: ndarray[Any, dtype[_ScalarType_co]], t_AP: ndarray[Any, dtype[_ScalarType_co]]) poly1d[source]

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