PolynomialBase Class

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

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public abstract class PolynomialBase : LinearCombination
Inheritance
Object  →  Curve  →  LinearCombination  →  PolynomialBase
Derived

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(Double[]) Constructs a new curve with a specified set of parameters.
PolynomialBase(Int32) Constructs a new curve with the specified number of parameters.

Properties

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

Methods

Add(LinearCombination) Adds another LinearCombination to this instance.
(Inherited from LinearCombination)
Add(Double, LinearCombination) Adds a multiple of another LinearCombination to this instance.
(Inherited from LinearCombination)
Clone Constructs an exact copy of this instance.
(Inherited from Curve)
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)
GetCurveFitter Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from LinearCombination)
GetDerivative Returns a Curve that represents the derivative of this Curve.
(Inherited from Curve)
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)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnParameterChanged Called when a coefficient of the polynomial is changed.
(Overrides Curve.OnParameterChanged(Int32, Double))
OnParameterChanging Called before the value of a curve parameter is changed.
(Inherited from Curve)
Reduce() Reduces the degree of a polynomial so that the leading coefficient is different from zero.
Reduce(Double) 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)
SlopeAt Gets the slope of the curve at the specified X-coordinate.
(Inherited from LinearCombination)
Solve Finds the x value where the curve reaches the specified y value.
(Inherited from Curve)
Subtract(LinearCombination) Subtracts another LinearCombination from this instance.
(Inherited from LinearCombination)
TangentAt Gets the tangent line to the curve at the specified X-coordinate.
(Inherited from Curve)
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)

See Also