Piecewise Constant Curve Class
Represents a curve that has different constant values on different intervals within its domain.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public class PiecewiseConstantCurve : PiecewiseCurve
- Inheritance
- Object → Curve → PiecewiseCurve → PiecewiseConstantCurve
Remarks
Use the PiecewiseConstantCurve class to represent a curve or function whose value is constant over a number of subintervals, but may be different on different intervals.
Piecewise constant curves are defined to be left-continuous. This means that on each interval, the function value at the left or lower bound is equal to the constant value over the interval. The function value at the right or upper bound is equal to the value of the curve on the next interval.
Piecewise linear curves inherit from PiecewiseCurve.
Constructors
Piecewise | Constructs a new PiecewiseConstantCurve object. |
Piecewise | Initializes a new instance of the PiecewiseConstantCurve class |
Piecewise | Constructs a new PiecewiseConstantCurve object. |
Piecewise | Constructs a new PiecewiseConstantCurve object. |
Properties
Number |
Gets the number of intervals that make up this PiecewiseCurve.
(Inherited from 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) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Find |
Gets the set of X-coordinates where the curve crosses
the X-axis.
(Inherited from Curve) |
Get |
Returns a CurveFitter object that can be used to fit the curve to data.
(Inherited from Curve) |
Get |
Gets the data point with the specified index.
(Inherited from PiecewiseCurve) |
Get |
Returns a Curve that represents the derivative
of this Curve.
(Inherited from Curve) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Get |
Returns the X value of the data point with the specified index.
(Inherited from PiecewiseCurve) |
Get |
Returns a span containing the X-values of the data points.
(Inherited from PiecewiseCurve) |
Get |
Returns the Y value of the data point with the specified index.
(Inherited from PiecewiseCurve) |
Get |
Returns a span containing the Y-values of the data points.
(Inherited from PiecewiseCurve) |
Index |
Finds the index of the lower bound of the interval that contains the specfied value.
(Inherited from PiecewiseCurve) |
Integral |
Gets the definite integral of the curve between the
specified X-coordinates.
(Inherited from PiecewiseCurve) |
Integrate |
Returns the value of the integral over the interval with the specified index.
(Inherited from PiecewiseCurve) |
Integrate |
Returns the integral of the curve over a single interval.
(Overrides PiecewiseCurve.IntegrateOnInterval(Int32, Double, Double)) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
OnParameter |
Called after a Curve parameter has been changed.
(Inherited from Curve) |
OnParameter |
Called before the value of a curve parameter is changed.
(Inherited from PiecewiseCurve) |
Set |
Sets the X value of the data point with the specified index.
(Inherited from PiecewiseCurve) |
Set |
Sets the data points at the specified indexes.
(Inherited from PiecewiseCurve) |
Set |
Sets a curve parameter to the specified value.
(Inherited from Curve) |
Set |
Sets the X value of the data point with the specified index.
(Inherited from PiecewiseCurve) |
Set |
Sets the X values at the specified indexes.
(Inherited from PiecewiseCurve) |
Set |
Sets the Y value of the data point with the specified index.
(Inherited from PiecewiseCurve) |
Set |
Sets the Y values at the specified indexes.
(Inherited from PiecewiseCurve) |
Slope |
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) |
Tangent |
Gets the tangent line to the curve at the
specified X-coordinate.
(Inherited from Curve) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Value |
Gets the Y-value of the curve at the specified
X-coordinate.
(Overrides Curve.ValueAt(Double)) |