polyfit_maxima

polyfit_maxima(x, y, fit_order=2): 

LLM Docstring

Fit a polynomial to (x, y) and return its maxima (critical points with negative curvature).

  • x: np.ndarray

    the sample abscissae

  • y: np.ndarray

    the sample values

  • fit_order: int

    the polynomial degree

  • :returns: tuple

    (maxima_x, maxima_values, curvature)


Feedback

Examples

Templates

Documentation