parabolic_turning_point¶
- sunpy.image.coalignment.parabolic_turning_point(y)[source]¶
Find the location of the turning point for a parabola
y(x) = ax^2 + bx + c
, given input valuesy(-1), y(0), y(1)
. The maximum is located atx0 = -b / 2a
. Assumes that the input array represents an equally spaced sampling at the locationsy(-1), y(0) and y(1)
.- Parameters
y (
numpy.ndarray
) – A one dimensional numpy array of shape “3” with entries that sample the parabola at “-1”, “0”, and “1”.- Returns
float
– A float, the location of the parabola maximum.