Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.Curves Namespace
Represents a curve in two-dimensional space.
For a list of all members of this type, see Curve Members.
System.Object
Curve
The Curve class is the abstract (MustInherit in Visual Basic) base class for classes that represent curves in two-dimensional space. It defines common properties and methods for all such classes. Derived classes provide implementations for specific types of curves.
The name 'Curve' was chosen as an alternative to 'Function', which is a reserved word in many languages.
The ValueAt method evaluates the curve at a specific point. SlopeAt evaluates the derivative, and Integral evaluates the definite integral over a specified interval. If overridden by a descendant class, the GetDerivative method returns the Curve that is the derivative of the instance. The FindRoots method attempts to find all the roots or zeros of the curve.
A particular type of curve is defined by a set of parameters. These parameters can be set and retrieved through the Parameters property which is of type ParameterCollection. The number of such parameters is given by the Count property of the Parameters property.
Curve is an abstract base class and cannot be instantiated directly. The following derived classes have been defined:
| Class | Description |
|---|---|
| GeneralCurve | A curve whose value and optionally its derivative is calculated using a RealFunction delegate. |
| Constant | A curve with a constant Y-value. |
| Line | A straight line. |
| Quadratic | A quadratic curve, or a polynomial of degree 2. |
| LinearCombination | A linear combination of an arbitrary set of curves. |
| PolynomialBase | Abstract base class for classes that implement different types of polynomials. Derives from LinearCombination. |
| Polynomial | A polynomial. Derives from PolynomialBase. |
| ChebyshevSeries | A linear combination of Chebyshev polynomials. Derives from PolynomialBase. |
| CubicSpline | A natural or clamped cubic spline. Derives from PiecewiseCurve. |
| NonlinearCurve | A curve that is non-linear in its parameters and is suitable for non-linear curve fitting. |
Notes to inheritors: When you derive from Curve, you must override the following member: ValueAt. You should also override the following members: SlopeAt, Integral, FindRoots, and GetDerivative.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Mathematics (in Extreme.Mathematics.dll)
Curve Members | Extreme.Mathematics.Curves Namespace