PolynomialBasis<T> Class

Represents a FunctionBasis<T> for the polynomials up to a specified degree.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
C#
[SerializableAttribute]
public class PolynomialBasis<T> : FunctionBasis<T>
where T : Object, INumberBase<T>
Inheritance
Object  →  FunctionBasis<T>  →  PolynomialBasis<T>

Type Parameters

T

Remarks

Use a PolynomialBasis<T> object to represent a basis for the polynomials. Only in rare cases will it be necessary to construct a PolynomialBasis<T>, as most functionality is available through the Polynomial class.

The basis functions of a PolynomialBasis<T> are the monomials of degree 0 up to and including the specified degree.

The Chebyshev polynomials form an alternate basis for the polynomials and have many desirable numerical properties.

Constructors

PolynomialBasis<T> Constructs a new [!:GeneralFunctionBasis<T>] from an array of function of one variable delegates.

Properties

Item Gets an element of the collection as a function of one variable.
(Overrides FunctionBasis<T>.Item[Int32])
Length Gets the number of items in this FunctionBasis.
(Inherited from FunctionBasis<T>)

Methods

DerivativesAt Evaluates the derivatives of the member functions of this FunctionBasis at a specified value.
(Inherited from FunctionBasis<T>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FillDerivatives(T, DenseVector<T>) Fills a vector with the derivatives of the member functions at a specified value.
(Overrides FunctionBasis<T>.FillDerivatives(T, DenseVector<T>))
FillDerivatives(Vector<T>, DenseMatrix<T>) Fills the rows of a DenseMatrix<T> with the values of the member functions of a FunctionBasis evaluated for each element in a Vector.
(Inherited from FunctionBasis<T>)
FillValues(T, DenseVector<T>) Fills a dense vector with the values of the member functions at a specified value.
(Overrides FunctionBasis<T>.FillValues(T, DenseVector<T>))
FillValues(Vector<T>, DenseMatrix<T>) Fills the rows of a DenseMatrix<T> with the values of the member functions of a FunctionBasis evaluated for each element in a Vector.
(Inherited from FunctionBasis<T>)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetFunction Constructs a new Polynomial with the specified coefficients.
(Overrides FunctionBasis<T>.GetFunction(Vector<T>))
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LeastSquaresFit(Vector<T>, Vector<T>) Gets the least squares fit of target data in terms of the components of the FunctionBasis.
(Inherited from FunctionBasis<T>)
LeastSquaresFit(T[], T[], T[]) Gets the least squares fit of target data in terms of the components of the FunctionBasis.
(Inherited from FunctionBasis<T>)
LeastSquaresFit(T[], T[], Int32) Gets the least squares fit of target data in terms of the components of the FunctionBasis.
(Inherited from FunctionBasis<T>)
LeastSquaresFit(Vector<T>, Vector<T>, Vector<T>) Gets the least squares fit of target data in terms of the components of the FunctionBasis.
(Inherited from FunctionBasis<T>)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
ValuesAt Evaluates the member functions of this FunctionBasis at a specified value.
(Inherited from FunctionBasis<T>)

See Also