The Curve Fitting function calculates the polynomial factors that best match the source data. The degree of the polynomial is configurable (from 2 to 20).

Example:
fitting1Function.setPolyDegree(6);