splineSlopes

Piecewise cubic hermite interpolating polynomial.

@trusted
@fmamath
void
splineSlopes
(
F
T
IP
IV
IS
SliceKind gkind
SliceKind vkind
SliceKind skind
)
(
Slice!(IP, 1, gkind) points
,
Slice!(IV, 1, vkind) values
,
Slice!(IS, 1, skind) slopes
,
Slice!(T*) temp
,
SplineType kind
,,,)

Parameters

points Slice!(IP, 1, gkind)

x values for interpolant

values Slice!(IV, 1, vkind)

f(x) values for interpolant

slopes Slice!(IS, 1, skind)

uninitialized ndslice to write slopes into

temp Slice!(T*)

uninitialized temporary ndslice

kind SplineType

SplineType type of cubic spline.

param F

tangent power parameter for cardinal SplineType (ignored by other spline types). Use 1 for zero derivatives at knots and 0 for Catmull–Rom spline.

lbc SplineBoundaryCondition!F

left boundary condition

rbc SplineBoundaryCondition!F

right boundary condition Constraints: points, values, and slopes, must have the same length > 3; temp must have length greater or equal to points less minus one.

Meta