Skip to main content

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

User Manual

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:

  1. Initialize input arrays.
  2. Initialize input parameters.
  3. Call liblip function.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liblip-0.91.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl (384.4 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file liblip-0.91.tar.gz.

File metadata

  • Download URL: liblip-0.91.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for liblip-0.91.tar.gz
Algorithm Hash digest
SHA256 53e3092806697cd8981188731af43fda49346007753c57e902fe31cde4174569
MD5 2a31369a5e81303d95437d526798f1b0
BLAKE2b-256 8fca0634077173a9143c3c528b70fc6a41f7bc3ae716ad06aff2a9371f2db321

See more details on using hashes here.

File details

Details for the file liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 384.4 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8cacc3b814673550e9566394d9916c0e39dc54ea2ea4fdfc5591a46a6a5e5814
MD5 d528ccb9df37bbc502b3b07f96856baa
BLAKE2b-256 f30d15e8b14913025f6d5ce3a345ada6bb000cd37f356db7375f3cfa95fa98f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page