API
Documentation for CachedInterpolations.jl
's public interface.
CachedInterpolations.CSmoothedLinearInterpolation
— TypeCSmoothedLinearInterpolation(u, t; λ = 0.25, extrapolate = false)
The method of interpolating between the data points using a linear polynomial, with an anterval around the corner points being replaced by a smooth spline section.
Arguments
u
: data points.t
: time points.
Keyword Arguments
extrapolate
: boolean value to allow extrapolation. Defaults tofalse
.λ
: The relative size of the spline interval. The interval extents a fractionλ/2
towards the neighbouring time points.
CachedInterpolations.CLinearInterpolation
— MethodCLinearInterpolation(A::CSmoothedLinearInterpolation; n_samples = 10)
Converting a CSmoothedLinearInterpolation object into LinearInterpolation object by sampling the spline sections. The main usage of this is that a LinearInterpolation and especially its integration inverse are much cheaper to evaluate than the original smoothed equivalents.
Arguments
A
: The CSmoothedLinearInterpolation object
Keyword Arguments
n_samples
: The number of samples per spline section
CachedInterpolations.invert_integral
— MethodInvert the integral of a (C)LinearInterpolation object, which yields a
CLinearInterpolationIntInv object.
CachedInterpolations.invert_integral
— MethodInvert the integral of a CSmoothedLinearInterpolation object, which yields
CSmoothedLinearInterpolationIntInv object.