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, SplineType kind, T param, SplineBoundaryType typeOfBoundaries, T valueOfBoundaryConditions)
  3. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineBoundaryCondition!T boundaries, SplineType kind, T param)
  4. Spline!(T, N, X) spline(Repeat!(N, Slice!(RCI!(immutable X))) grid, Slice!(yIterator, N, ykind) values, SplineBoundaryCondition!T rBoundary, SplineBoundaryCondition!T lBoundary, SplineType kind, T param)
    template spline(T, size_t N = 1, X = T)
    @fmamath
    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
    )

Parameters

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

immutable x values for interpolant

values Slice!(yIterator, N, ykind)

f(x) values for interpolant

rBoundary SplineBoundaryCondition!T
lBoundary 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