slmsuite.holography.analysis.fitfunctions.parabola#

parabola(x, a, x0, y0)[source]#

For fitting a parabola.

\[y(x) = a(x - x_0)^2 + y_0\]
Parameters:
  • x (numpy.ndarray) – Some independent variable.

  • a (float) – Strength of the parabola.

  • x0 (float) – \(x\) position of the vertex.

  • y0 (float) – \(y\) position of the vertex.

Returns:

y – Line evaluated at all x.

Return type:

numpy.ndarray