mir.interpolate.spline

Cubic Spline Interpolation

The module provides common C2 splines, monotone (PCHIP) splines, Akima splines and others.

Public Imports

mir.interpolate
public import mir.interpolate : atInterval;

Members

Functions

pchipTail
T pchipTail(T step0, T step1, T diff0, T diff1)
Undocumented in source. Be warned that the author may not have intended to support it.
splineSlopes
void splineSlopes(Slice!(IP, 1, gkind) points, Slice!(IV, 1, vkind) values, Slice!(IS, 1, skind) slopes, Slice!(T*) temp, SplineType kind, F param, SplineBoundaryCondition!F lbc, SplineBoundaryCondition!F rbc)

Piecewise cubic hermite interpolating polynomial.

Structs

Spline
struct Spline(F, size_t N = 1, X = F)

Multivariate cubic spline with nodes on rectilinear grid.

SplineBoundaryCondition
struct SplineBoundaryCondition(T)

Cubic Spline Boundary Condition Type.

SplineKernel
struct SplineKernel(X)

Templates

spline
template spline(T, size_t N = 1, X = T)

Cubic Spline types.

See Also

Meta

License

Apache-2.0

Authors

Ilya Yaroshenko