MatrixObject.PolynomialFit

This function calculates Polynomial fit of the specified order for the array of x/y values specified; returns array of polynomial coefficients and the calculated rSquare of the fit.

Syntax Parameters Return Value
Sub MatrixObject.PolynomialFit( _
    x As Variant, _
    y As Variant, _
    order As Integer, _
    ByRef pCoefficients As Variant, _
    ByRef rSquared As Double)
  • x [in]

Type: Variant

  • y [in]

Type: Variant

  • order [in]

Type: Integer

  • pCoefficients [out]

Type: Variant

  • rSquared [out]

Type: Double

This function does not return a value.