The OpenD Programming Language

spline.spline

  1. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineBoundaryType typeOfBoundaries, T valueOfBoundaryConditions)
  2. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineBoundaryCondition!T boundaries, SplineType kind, T param)
  3. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineBoundaryCondition!T lBoundary, SplineBoundaryCondition!T rBoundary, SplineType kind, T param)
    template spline(T, size_t N = 1, X = T)
    Spline!(T, N, X)
    spline
    (
    yIterator
    SliceKind ykind
    )
    (
    Repeat!(N, Slice!(RCI!(immutable X))) grid
    ,
    Slice!(yIterator, N, ykind) values
    ,,,
    SplineType kind = SplineType.c2
    ,
    in T param = 0
    )
    if (
    isFloatingPoint!T &&
    is(T == Unqual!T)
    &&
    N <= 6
    )
  4. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineConfiguration!T configuration)

Parameters

grid Repeat!(N, Slice!(RCI!(immutable X)))

immutable x values for interpolant

values Slice!(yIterator, N, ykind)

f(x) values for interpolant

lBoundary SplineBoundaryCondition!T
rBoundary SplineBoundaryCondition!T

SplineBoundaryCondition for right tail.

kind SplineType

SplineType type of cubic spline.

param T

tangent power parameter for cardinal SplineType (ignored by other spline types). Use 1 for zero derivatives at knots and 0 for Catmull–Rom spline. Constraints: grid and values must have the same length >= 3

Return Value

Type: Spline!(T, N, X)

Meta