Serves as an abstract base class for Curve
derived classes that represent polynomials.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public MustInherit Class PolynomialBase _ Inherits LinearCombination |
| C# |
|---|
public abstract class PolynomialBase : LinearCombination |
| C++ |
|---|
public ref class PolynomialBase abstract : public LinearCombination |
Methods
| Icon | Type | Description |
|---|---|---|
| Add(LinearCombination) |
Adds another LinearCombination to this instance.
| |
| Add(Double, LinearCombination) |
Adds a multiple of another LinearCombination to this instance.
| |
| Clone() |
Constructs an exact copy of this instance.
| |
| Equals(Object) | ||
| Finalize() | ||
| FindRoots() |
Gets the set of X-coordinates where the curve crosses
the X-axis.
| |
| GetCurveFitter() |
Returns a CurveFitter object that can be used to fit the curve to data.
| |
| GetDerivative() | ||
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetType() | Gets the Type of the current instance. | |
| Integral(Double, Double) |
Gets the definite integral of the curve between the
specified X-coordinates.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| OnParameterChanged(Int32, Double) |
Called when a coefficient of the polynomial is changed.
| |
| OnParameterChanging(Int32, Double) |
Called before the value of a curve parameter is changed.
| |
| 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.
| |
| SlopeAt(Double) |
Gets the slope of the curve at the specified
X-coordinate.
| |
| Subtract(LinearCombination) |
Subtracts another LinearCombination from this instance.
| |
| TangentAt(Double) |
Gets the tangent Line to the curve at the
specified X-coordinate.
| |
| ToString() | ||
| ValueAt(Double) |
Gets the Y-value of the curve at the specified
X-coordinate.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| PolynomialBaseNew(Double[]()) |
Constructs a new curve with a specified set of
parameters.
| |
| PolynomialBaseNew(Int32) |
Constructs a new curve with the specified number of
parameters.
|
Properties
| Icon | Type | Description |
|---|---|---|
| Basis |
Gets the FunctionBasis associated with the linear combination.
| |
| Coefficient(Int32) |
Gets or sets the coefficient of the function with the specified
index.
| |
| Degree |
Gets the degree of the polynomial.
| |
| Item(Int32) |
Gets or sets the coefficient of the function with the specified
index.
| |
| Parameters |
Gets the collection of parameters that determine the shape of this
Curve.
|
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:
| Class | Description |
|---|---|
| Polynomial | Ordinary polynomials. |
| ChebyshevSeries | Linear 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().
Inheritance Hierarchy
System.Object
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.LinearCombination
Extreme.Mathematics.Curves.PolynomialBase
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.LinearCombination
Extreme.Mathematics.Curves.PolynomialBase