Click or drag to resize

PolynomialLeastSquares Class

Class PolynomialLeastSquares performs a least squares fit of a polynomial to the data.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CorePolynomialLeastSquares

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
public class PolynomialLeastSquares : ICloneable

The PolynomialLeastSquares type exposes the following members.

Constructors
  NameDescription
Public methodPolynomialLeastSquares(Int32, DoubleVector, DoubleVector)
Constructs a PolynomialLeastSquares instances that fits the given data.
Public methodPolynomialLeastSquares(Int32, DoubleVector, DoubleVector, Boolean)
Constructs a PolynomialLeastSquares instances that fits the given data.
Public methodPolynomialLeastSquares(Int32, DoubleVector, DoubleVector, Double)
Constructs a PolynomialLeastSquares instances that fits the given data.
Public methodPolynomialLeastSquares(Int32, DoubleVector, DoubleVector, Boolean, Double)
Constructs a PolynomialLeastSquares instances that fits the given data.
Top
Properties
  NameDescription
Public propertyCoefficients
Gets the coeffients of the fitted polynomial.
Public propertyDegree
Gets the degree of the fitted polynomial.
Public propertyDesignMatrix
Gets the design matrix for the fit.
Public propertyFittedPolynomial
Gets the fitted polynomial.
Public propertyLeastSquaresSolution
Gets the least squares object used to compute the coefficients.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this polynomial least squares.
Public methodCoeffErrorEstimate
Returns error estimates for the coefficients based on the estimated error in the y values.
Top
Remarks
Solves the equation y = Xa using least squares, where X is the Vandermonde matrix. X[i,j] = xi ^ j. y is the y data.
See Also