fitting.cubic

fitting.cubic(x, a, b, c, d)

Third order polynomial.

Parameters:
  • x (array) – x-values.
  • a (float) – Offset.
  • b (float) – Linear term.
  • c (float) – Quadratic term.
  • d (float) – Cubic term.
Returns:

f(x) = d x^3 + c x^2 + b x + a.