The OpenD Programming Language

splineSlopes

Piecewise cubic hermite interpolating polynomial.

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

Parameters

points Slice!(P*, 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.

lBoundary SplineBoundaryCondition!F

left boundary condition

rBoundary 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. Returs: Spline convexity type

Meta