Represents a curve with a constant Y-value.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class Constant _ Inherits Polynomial |
| C# |
|---|
public sealed class Constant : Polynomial |
| C++ |
|---|
public ref class Constant 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 points where the curve crosses the X-axis.
| |
| GetCurveFitter() |
Returns a CurveFitter object that can be used to fit the curve to data.
| |
| GetDerivative() | ||
| 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 |
|---|---|---|
| ConstantNew(Double) |
Constructs a new Constant curve with the specified
Y-value.
|
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.
| |
| Zero |
Represents a Constant curve with
value zero.
|
Remarks
Use the Constant class to represent
a Curve with a constant Y-value. It inherits from
Curve and provides specialized
implementation for most methods.
A Constant curve has one parameter: the Y-value.
The ValueAt(Double) method returns the constant value of the curve. SlopeAt(Double) always returns zero. Integral(Double, Double) evaluates the definite integral over a specified interval.
A Constant curve is returned by the GetDerivative() method of the Line class.