exa.core.model_selection_fitter.models.polynomial_model.third_order_poly_function

exa.core.model_selection_fitter.models.polynomial_model.third_order_poly_function#

third_order_poly_function(x, a_3=1, a_2=0, a_1=0, a_0=0)#

Third order polynomial model.

Parameters:
  • x (ndarray) – x-coordinate.

  • a_3 (float) – Coefficient of cubic term.

  • a_2 (float) – Coefficient of quadratic term.

  • a_1 (float) – Coefficient of linear term.

  • a_0 (float) – Constant term.

Returns:

Values of the third order polynomial for x.

Return type:

ndarray