EquiBaryInterp.jl

Local barycentric Lagrange interpolation on equispace data
Author lxvm
Popularity
0 Stars
Updated Last
1 Year Ago
Started In
February 2023

EquiBaryInterp.jl

Documentation Build Status Coverage Version
ver-img
deps-img

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.

Usage

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()).

Algorithm

The barycentric interpolation kernel used by LocalEquiBaryInterp is based on

Author and Copyright

EquiBaryInterp.jl was written by Lorenzo Van Muñoz, and is free/open-source software under the MIT license.

Related packages