VirtualMatrix.PolynomialFit(Variable) Method

Top 

Description

Uses Singular Value Decomposition to compute the coefficients of a polynomial to best fit the data set defined by the nx2 calling matrix.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

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

 

Method Signature

VirtualMatrix.PolynomialFit(

Variable polynomialDegree)

 

 

Arguments

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 = [1,2; 3,4].PolynomialFit(myVariable1);

 

 

See also

VirtualMatrix Object

VirtualMatrix.PolynomialFit