Constructs an instance of NaturalCubicSpline for the given paired
vectors of x- and y-values.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public ClampedCubicSpline( DoubleVector x, DoubleVector y, double leftEndSlope, double rightEndSlope ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ x As DoubleVector, _ y As DoubleVector, _ leftEndSlope As Double, _ rightEndSlope As Double _ ) |
| Visual C++ |
|---|
public: ClampedCubicSpline( DoubleVector^ x, DoubleVector^ y, double leftEndSlope, double rightEndSlope ) |
Parameters
- x
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of x-values. The values must be in increasing order.
- y
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of y-values.
- leftEndSlope
- Type: System..::.Double
The slope at the left end point.
- rightEndSlope
- Type: System..::.Double
The slope at the right end point.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the values in the x vector are not strictly increasing, or if the vectors x and y do not have the same length, or there are less than two points. |