PolynomialBase<T> Class

Serves as an abstract base class for Curve derived classes that represent polynomials.

Definition

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

Type Parameters

T

Remarks

This base class is provided to make it easier for implementers to create classes that implement linear combinations of specific types of univariate polynomials.

This is an abstract base class and cannot be instantiated directly. Instead, create an instance of one of the defined derived classes, or create a class that inherits from PolynomialBase.

The following derived classes have been defined:

ClassDescription
PolynomialOrdinary polynomials.
ChebyshevSeriesLinear combination of Chebyshev polynomials.

Note to inheritors: When you inherit from PolynomialBase, you should create a corresponding class that inherits from FunctionBasis. In addition, you must override the following members: ValueAt(Double), SlopeAt(Double), Integral(Double, Double). You may also want to override FindRoots() and GetDerivative().

Constructors

PolynomialBase<T>(Int32) Constructs a new curve with the specified number of parameters.
PolynomialBase<T>(T[]) Constructs a new curve with a specified set of parameters.

Properties

Basis Gets the FunctionBasis<T> associated with the linear combination.
(Inherited from LinearCombination<T>)
Coefficient Gets or sets the coefficient of the function with the specified index.
(Inherited from LinearCombination<T>)
Degree Gets the degree of the polynomial.
Parameters Gets the collection of parameters that determine the shape of this Curve.
(Inherited from Curve<T>)

Methods

Add(LinearCombination<T>) Adds another LinearCombination<T> to this instance.
(Inherited from LinearCombination<T>)
Add(T, LinearCombination<T>) Adds a multiple of another LinearCombination<T> to this instance.
(Inherited from LinearCombination<T>)
Clone Constructs an exact copy of this instance.
(Inherited from Curve<T>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FindRoots Gets the set of X-coordinates where the curve crosses the X-axis.
(Inherited from Curve<T>)
GetCurveFitter Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from LinearCombination<T>)
GetDerivative Returns a Curve that represents the derivative of this Curve.
(Inherited from Curve<T>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Integral Gets the definite integral of the curve between the specified X-coordinates.
(Inherited from Curve<T>)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnParameterChanged Called when a coefficient of the polynomial is changed.
(Overrides Curve<T>.OnParameterChanged(Int32, T))
OnParameterChanging Called before the value of a curve parameter is changed.
(Inherited from Curve<T>)
Reduce() Reduces the degree of a polynomial so that the leading coefficient is different from zero.
Reduce(T) Reduces the degree of a polynomial so that the leading coefficient is greater than the specified tolerance.
SetParameter Sets a curve parameter to the specified value.
(Inherited from Curve<T>)
SlopeAt Gets the slope of the curve at the specified X-coordinate.
(Inherited from LinearCombination<T>)
Solve Finds the x value where the curve reaches the specified y value.
(Inherited from Curve<T>)
Subtract(LinearCombination<T>) Subtracts another LinearCombination<T> from this instance.
(Inherited from LinearCombination<T>)
TangentAt Gets the tangent line to the curve at the specified X-coordinate.
(Inherited from Curve<T>)
ToStringReturns a string that represents the current object.
(Inherited from Object)
ValueAt Gets the Y-value of the curve at the specified X-coordinate.
(Inherited from LinearCombination<T>)

See Also