Polynomial Base Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
[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:
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().
Constructors
Polynomial | Constructs a new curve with a specified set of parameters. |
Polynomial | 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( |
Adds another LinearCombination to this instance.
(Inherited from LinearCombination) |
Add( |
Adds a multiple of another LinearCombination to this instance.
(Inherited from LinearCombination) |
Clone |
Constructs an exact copy of this instance.
(Inherited from Curve) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Find |
Gets the set of X-coordinates where the curve crosses
the X-axis.
(Inherited from Curve) |
Get |
Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from LinearCombination) |
Get |
Returns a Curve that represents the derivative
of this Curve.
(Inherited from Curve) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets 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) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
OnParameter |
Called when a coefficient of the polynomial is changed.
(Overrides Curve.OnParameterChanged(Int32, Double)) |
OnParameter |
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( | Reduces the degree of a polynomial so that the leading coefficient is greater than the specified tolerance. |
Set |
Sets a curve parameter to the specified value.
(Inherited from Curve) |
Slope |
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( |
Subtracts another LinearCombination from this instance.
(Inherited from LinearCombination) |
Tangent |
Gets the tangent line to the curve at the
specified X-coordinate.
(Inherited from Curve) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Value |
Gets the Y-value of the curve at the specified
X-coordinate.
(Inherited from LinearCombination) |