Represents a curve that has different expressions on different intervals within its domain.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class PiecewiseLinearCurve _ Inherits PiecewiseCurve |
| C# |
|---|
public class PiecewiseLinearCurve : PiecewiseCurve |
| C++ |
|---|
public ref class PiecewiseLinearCurve : 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 |
|---|---|---|
| PiecewiseLinearCurveNew(Double[](), Double[]()) |
Constructs a new PiecewiseLinearCurve object.
| |
| PiecewiseLinearCurveNew(Vector, Vector) |
Constructs a new PiecewiseLinearCurve object.
| |
| PiecewiseLinearCurveNew(Point[]()) |
Constructs a new PiecewiseLinearCurve 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 PiecewiseLinearCurve class to represent a curve or function that looks like
a broken line. It is most commonly used for linear interpolation of tabulated data that represents a continuous function.
On each interval between two data points, the curve is approximated by a straight line between the data points.
Piecewise linear curves inherit from PiecewiseCurve.
Inheritance Hierarchy
System.Object
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.PiecewiseCurve
Extreme.Mathematics.Curves.PiecewiseLinearCurve
Extreme.Mathematics.Curves.Curve
Extreme.Mathematics.Curves.PiecewiseCurve
Extreme.Mathematics.Curves.PiecewiseLinearCurve