Library for multivariate scattered data interpolation
Project description
liblip
Liblip is a library for multivariate scattered data interpolation
The Lipschitz interpolant possesses a number of desirable features, such as continuous dependence on the data, preservation of Lipschitz properties and of the range of the data, uniform approximation and best error bounds. On the practical side, construction and evaluation of the interpolant is com- putationally stable. There is no accumulation of errors with the size of the data set and dimension.
In addition to the Lipschitz constant, the user can provide information about other properties of f, such as monotonicity with respect to any subset of variables, upper and lower bounds (not necessarily constant bounds). If the data are given with errors, then it can be smoothened to satisfy the required properties. The Lipschitz constant, if unknown, can be estimated from the data using sample splitting and cross-validation techniques. The library also provides methods for approximation of locally Lipschitz functions.
There are two alternative ways to compute the interpolant: fast and explicit.
The fast method involves a preprocessing step after which the speed of evaluation is proportional to the logarithm of the size of the data set.
The second alternative is to use the explicit evaluation method, which does not require any preprocessing. We recommend this method for most applications, as it provides more flexibility with smoothing and incorporating other properties of f.
Documentation
Installation
To install type:
$ pip install liblip
Usage of the library
import liblip as ll
Follow these steps in your Python code to use the library:
- Initialize resources
- Use library function(s)
- Free resources
Example how to initialize resources
dim = 3<br>
npts = 1500<br>
x, XData, YData = ll.init( dim, npts)<br>
Example how to free resources
ll.free()<br>
Usage of library functions
To use a library function follow these steps:
- Initialize input arrays.
- Initialize input parameters.
- Call liblip function.
- Evaluate output parameters.
Example
import liblip as ll
dim = 3
npts = 1500
x, XData, YData = ll.init( dim, npts)
# to be continued
ll.free()
Parameters
Input parameters:
See input parameter list in user manual
Output parameters:
See output parameter list in user manual
Test
To unit test type:
$ test/test_procedural.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for liblip-0.56-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa23009d89f51e580abb6af718331e54ad54eec55fd6fbe9a517f32060d2847 |
|
MD5 | 1986bada93f585b506afb9eb3a8cb626 |
|
BLAKE2b-256 | 7cf0619fd53771ffa374a4e92317ebfbb8260d67841cf2b5ee3769905d1c706b |