Represents a quadratic Curve.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class Quadratic _ Inherits Polynomial |
| C# |
|---|
public sealed class Quadratic : Polynomial |
| C++ |
|---|
public ref class Quadratic sealed : public Polynomial |
Methods
| Icon | Type | Description |
|---|---|---|
| Add(Double, LinearCombination) |
Adds a multiple of another LinearCombination to this instance.
| |
| Add(LinearCombination) |
Adds another LinearCombination to this instance.
| |
| Clone() |
Constructs an exact copy of this instance.
| |
| ComplexSlopeAt(DoubleComplex) |
Evaluates the slope or first derivative of a polynomial
for a DoubleComplex argument.
| |
| ComplexValueAt(DoubleComplex) |
Evaluates the polynomial for a DoubleComplex
argument.
| |
| Deflate(Double) |
Deflates a polynomial by dividing out a root.
| |
| Equals(Object) |
Overridden. Returns a value indicating whether this
instance is equal to a specified object.
| |
| Finalize() | ||
| FindComplexRoots() |
Gets the set of roots of the Polynomial.
| |
| FindRoots() |
Gets the set of X-coordinates where the Quadratic
curve crosses the X-axis.
| |
| GetCurveFitter() |
Returns a CurveFitter object that can be used to fit the curve to data.
| |
| GetDerivative() |
Returns a Curve that represents the derivative
of this Quadratic.
| |
| GetHashCode() |
Overridden. Returns the hash code for this instance.
| |
| 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() |
Returns a string representation of this instance.
| |
| ValueAt(Double) |
Gets the Y-value of the curve at the specified
X-coordinate.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| QuadraticNew(Double, Double, Double) |
Constructs a new Quadratic curve using the
specified coefficients.
| |
| QuadraticNew(Point, Point, Point) |
Constructs a new Quadratic curve through
three points.
| |
| QuadraticNew(Double, Double, Double, Double, Double, Double) |
Constructs a new Quadratic curve through
three points.
|
Properties
| Icon | Type | Description |
|---|---|---|
| Basis |
Gets the function basis for the polynomial.
| |
| 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
Use a Quadratic to describe a
quadratic relationship between two quantities.
It inherits from Polynomial and provides
specialized implementation for most methods.
A quadratic curve can be defined in many ways. The Quadratic constructor is overloaded to reflect this.
A Quadratic curve has three parameters, corresponding to the constant, linear, and quadratic components.
The ValueAt(Double) method returns the value of the curve at a specific point. SlopeAt(Double) returns the slope of the Quadratic. Integral(Double, Double) evaluates the definite integral over a specified interval.