Array.PolynomialFit(Array, Variable) Method

Top 

Description

Uses Singular Value Decomposition to compute the coefficients of a polynomial to best fit the provided data set. The coefficients are returned in order of highest to lowest degree.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Array.PolynomialFit(

Array yValues,


Variable polynomialDegree)

 

 

Arguments

yValues


Description:

The y values of the data set to be fit.

 

 

polynomialDegree


Description:

The degree of the polynomial to fit to the data.

Valid Range:

polynomialDegree > 0

 

 

 

Return Value

Type:

Matrix of number

 

 

Returns a row matrix of the polynomial coefficients in order of highest to lowest degree. The number of columns of the matrix will be polynomialDegree + 1.

 

Syntax

myMatrix1 = myArray1.PolynomialFit(myArray2, myVariable1);

 

 

See also

Array Object

Array.PolynomialFit

Matrix, Array, and Variable Math Guide