PiecewiseCurve Class

Represents a curve that has different expressions on different intervals within its domain.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public abstract class PiecewiseCurve : Curve
Inheritance
Object  →  Curve  →  PiecewiseCurve
Derived

Remarks

This is an abstract base class and cannot be instantiated directly. Instead, use one of the derived classes as listed in the following table:

PiecewiseConstantCurveRepresents a curve that is piecewise constant.
PiecewiseLinearCurveRepresents a piecewise linear function.
CubicSplineRepresents a natural or clamped cubic spline curve, a piecewise 3rd degree polynomial with smoothness and continuity properties.
.

Constructors

PiecewiseCurve(Double[], Double[]) Constructs a new PiecewiseCurve object.
Obsolete.
PiecewiseCurve(IList<Point>, IList<Double>) Constructs a new PiecewiseCurve object.
PiecewiseCurve(IList<Point>, Double[]) Constructs a new PiecewiseCurve object.
PiecewiseCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>) Constructs a new PiecewiseCurve object.
PiecewiseCurve(Double[], Double[], Double[]) Constructs a new PiecewiseCurve object.
Obsolete.
PiecewiseCurve(IList<Double>, IList<Double>, IList<Double>) Constructs a new PiecewiseCurve object.
PiecewiseCurve(IList<Double>, IList<Double>, Double[]) Constructs a new PiecewiseCurve object.
PiecewiseCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>, ReadOnlySpan<Double>) Constructs a new PiecewiseCurve object.

Properties

NumberOfIntervals Gets the number of intervals that make up this PiecewiseCurve.
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.
(Inherited from Curve)
GetCurveFitter Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from Curve)
GetDataPoint Gets the data point with the specified index.
GetDerivative Returns a Curve that represents the derivative of this Curve.
(Inherited from Curve)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetXValue Returns the X value of the data point with the specified index.
GetXValuesSpan Returns a span containing the X-values of the data points.
GetYValue Returns the Y value of the data point with the specified index.
GetYValuesSpan Returns a span containing the Y-values of the data points.
IndexOf Finds the index of the lower bound of the interval that contains the specfied value.
Integral Gets the definite integral of the curve between the specified X-coordinates.
(Overrides Curve.Integral(Double, Double))
IntegrateOnInterval(Int32) Returns the value of the integral over the interval with the specified index.
IntegrateOnInterval(Int32, Double, Double) Returns the integral of the curve over a single interval.
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.
(Overrides Curve.OnParameterChanging(Int32, Double))
SetDataPoint Sets the X value of the data point with the specified index.
SetDataPoints Sets the data points at the specified indexes.
SetParameter Sets a curve parameter to the specified value.
(Inherited from Curve)
SetXValue Sets the X value of the data point with the specified index.
SetXValues Sets the X values at the specified indexes.
SetYValue Sets the Y value of the data point with the specified index.
SetYValues Sets the Y values at the specified indexes.
SlopeAt Gets the slope of the curve at the specified X-coordinate.
(Inherited from Curve)
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.
(Inherited from Curve)

See Also