GeneralCurve Class

Represents a curve in two-dimensional space whose value is defined by a function of one variable delegate.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class GeneralCurve : Curve
Inheritance
Object  →  Curve  →  GeneralCurve

Remarks

This class inherits from the Curve class, which provides common properties and methods for all classes that represent two-dimensional curves.

The ValueAt(Double) method evaluates the curve at a specific point. SlopeAt(Double) evaluates the derivative, and Integral(Double, Double) 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 one zero of the function using Newton's method.

Curves of this type do not have any parameters. The Parameters collection is always empty.

Constructors

GeneralCurve(Func<Double, Double>) Constructs a new GeneralCurve from a function of one variable delegate.
GeneralCurve(Func<Double, Double>, Func<Double, Double>) Constructs a new GeneralCurve from a function of one variable delegate with the specified derivative.
GeneralCurve(Func<Double, Double>, Func<Double, Double>, Func<Double, Double>) Constructs a new GeneralCurve from a function of one variable delegate with the specified derivative.

Properties

Parameters Gets the collection of parameters that determine the shape of this Curve.
(Inherited from Curve)

Methods

Clone Constructs an exact copy of this instance.
(Inherited from Curve)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FindRoots Gets the set of X-coordinates where the curve crosses the X-axis.
(Overrides Curve.FindRoots())
GetCurveFitter Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from Curve)
GetDerivative Returns a Curve that represents the derivative of this Curve.
(Overrides Curve.GetDerivative())
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Integral Gets the definite integral of the curve between the specified X-coordinates.
(Overrides Curve.Integral(Double, Double))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnParameterChanged Called after a Curve parameter has been changed.
(Inherited from Curve)
OnParameterChanging Called before the value of a curve parameter is changed.
(Inherited from Curve)
SetParameter Sets a curve parameter to the specified value.
(Inherited from Curve)
SlopeAt Gets the slope of the curve at the specified X-coordinate.
(Overrides Curve.SlopeAt(Double))
Solve Finds the x value where the curve reaches the specified y value.
(Inherited from Curve)
TangentAt Gets the tangent line to the curve at the specified X-coordinate.
(Inherited from Curve)
ToStringReturns a string that represents the current object.
(Inherited from Object)
ValueAt Gets the Y-value of the curve at the specified X-coordinate.
(Overrides Curve.ValueAt(Double))

See Also