Represents a curve that has different constant values on different intervals within its domain.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class PiecewiseConstantCurve _ Inherits PiecewiseCurve |
| C# |
|---|
public class PiecewiseConstantCurve : PiecewiseCurve |
| C++ |
|---|
public ref class PiecewiseConstantCurve : public PiecewiseCurve |
Methods
| Icon | Type | Description |
|---|---|---|
| Clone() |
Constructs an exact copy of this instance.
| |
| Equals(Object) | ||
| Finalize() | ||
| FindRoots() |
Gets the set of X-coordinates where the curve crosses
the X-axis.
| |
| GetCurveFitter() |
Returns a CurveFitter object that can be used to fit the curve to data.
| |
| GetDataPoint(Int32) |
Gets the data point with the specified index.
| |
| GetDerivative() | ||
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetType() | Gets the Type of the current instance. | |
| GetXValue(Int32) |
Returns the X value of the data point with the specified index.
| |
| GetYValue(Int32) |
Returns the Y value of the data point with the specified index.
| |
| IndexOf(Double) |
Finds the index of the lower bound of the interval that contains the specfied value.
| |
| Integral(Double, Double) |
Gets the definite integral of the curve between the
specified X-coordinates.
| |
| IntegrateOnInterval(Int32, Double, Double) |
Returns the integral of the curve over a single interval.
| |
| IntegrateOnInterval(Int32) |
Returns the value of the integral over the interval with the specified index.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| OnParameterChanged(Int32, Double) |
Called after a Curve parameter has been changed.
| |
| OnParameterChanging(Int32, Double) |
Called before the value of a curve parameter is changed.
| |
| SetDataPoint(Int32, Point) |
Sets the X value of the data point with the specified index.
| |
| SetDataPoints(Int32[](), Point[]()) |
Sets the data points at the specified indexes.
| |
| SetXValue(Int32, Double) |
Sets the X value of the data point with the specified index.
| |
| SetXValues(Int32[](), Double[]()) |
Sets the X values at the specified indexes.
| |
| SetYValue(Int32, Double) |
Sets the Y value of the data point with the specified index.
| |
| SetYValues(Int32[](), Double[]()) |
Sets the Y values at the specified indexes.
| |
| SlopeAt(Double) |
Gets the slope of the curve at the specified
X-coordinate.
| |
| TangentAt(Double) |
Gets the tangent Line to the curve at the
specified X-coordinate.
| |
| ToString() | ||
| ValueAt(Double) |
Gets the Y-value of the curve at the specified
X-coordinate.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| PiecewiseConstantCurveNew(Double[](), Double[]()) |
Constructs a new PiecewiseConstantCurve object.
| |
| PiecewiseConstantCurveNew(Vector, Vector) |
Constructs a new PiecewiseConstantCurve object.
| |
| PiecewiseConstantCurveNew(Point[]()) |
Constructs a new PiecewiseConstantCurve object.
|
Properties
| Icon | Type | Description |
|---|---|---|
| NumberOfIntervals |
Gets the number of intervals that make up this PiecewiseCurve.
| |
| Parameters |
Gets the collection of parameters that determine the shape of this
Curve.
|
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.
Inheritance Hierarchy
System.Object
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.PiecewiseCurve
Extreme.Mathematics.Curves.PiecewiseConstantCurve
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.PiecewiseCurve
Extreme.Mathematics.Curves.PiecewiseConstantCurve