interp

From MaRDI portal
Software:52736



swMATH37034CRANinterpMaRDI QIDQ52736

Interpolation Methods

David Sinclair, Albrecht Gebhardt, Roger Bivand

Last update: 26 January 2024

Copyright license: GNU General Public License, version 3.0, GNU General Public License, version 2.0

Software version identifier: 1.1-4, 1.0-27, 1.0-28, 1.0-29, 1.0-30, 1.0-31, 1.0-32, 1.0-33, 1.1-1, 1.1-2, 1.1-3, 1.1-5, 1.1-6


Source code repository: https://github.com/cran/interp

Bivariate data interpolation on regular and irregular grids, either linear or using splines are the main part of this package. It is intended to provide FOSS replacement functions for the ACM licensed akima::interp and tripack::tri.mesh functions. Linear interpolation is implemented in interp::interp(..., method="linear"), this corresponds to the call akima::interp(..., linear=TRUE) which is the default setting and covers most of akima::interp use cases in depending packages. A re-implementation of Akimas irregular grid spline interpolation (akima::interp(..., linear=FALSE)) is now also available via interp::interp(..., method="akima"). Estimators for partial derivatives are now also available in interp::locpoly(), these are a prerequisite for the spline interpolation. The basic part is a GPLed triangulation algorithm (sweep hull algorithm by David Sinclair) providing the starting point for the irregular grid interpolator. As side effect this algorithm is also used to provide replacements for almost all functions of the tripack package which also suffers from the same ACM license restrictions. All functions are designed to be backward compatible with their akima / tripack counterparts.