Documentation | Build Status | Coverage | Version |
---|---|---|---|
This package provides local barycentric Lagrange interpolation for data on equispace grids. This is useful to provide a well-conditioned and fast-to-evaluate low-degree polynomial interpolant of equispaced data.
To construct an interpolant for some arbitrary data, the interface is like this
julia> using EquiBaryIntep
julia> nodes = range(0, 1, length=1000)
julia> data = rand(length(nodes))
julia> p = LocalEquiBaryInterp(nodes, data, degree=8)
This returns an interpolant p
that can be evaluated at any point in the span
of the nodes using the functor interface, e.g. p(rand())
.
The barycentric interpolation kernel used by LocalEquiBaryInterp
is based on
EquiBaryInterp.jl was written by Lorenzo Van Muñoz, and is free/open-source software under the MIT license.