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.ndarraythe sample abscissae
y:np.ndarraythe sample values
fit_order:intthe polynomial degree
:returns:tuple(maxima_x, maxima_values, curvature)