Skip to main content

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

Release files for liblip 0.91

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liblip 0.91
File Size Uploaded
liblip-0.91.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for liblip 0.91
File Interpreter ABI Platform
liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details

Total release size: 2.3 MB

Release files / liblip-0.91.tar.gz

Download URL liblip-0.91.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
53e3092806697cd8981188731af43fda49346007753c57e902fe31cde4174569
BLAKE2b-256 checksum
How to use checksums
8fca0634077173a9143c3c528b70fc6a41f7bc3ae716ad06aff2a9371f2db321
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl

Download URL liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl
Size 384.4 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
8cacc3b814673550e9566394d9916c0e39dc54ea2ea4fdfc5591a46a6a5e5814
BLAKE2b-256 checksum
How to use checksums
f30d15e8b14913025f6d5ce3a345ada6bb000cd37f356db7375f3cfa95fa98f0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.91 This release

2 release files

0.90

2 release files

0.89

2 release files

0.88

2 release files

0.87

2 release files

0.86

2 release files

0.85

2 release files

0.84

2 release files

0.83

1 release file

0.82

2 release files

0.81

2 release files

0.80

2 release files

0.79

2 release files

0.78

2 release files

0.77

2 release files

0.76

2 release files

0.75

2 release files

0.74

2 release files

0.73

2 release files

0.72

2 release files

0.71

2 release files

0.70

2 release files

0.69

2 release files

0.68

2 release files

0.67

2 release files

0.66

2 release files

0.65

2 release files

0.64

2 release files

0.63

2 release files

0.62

2 release files

0.61

2 release files

0.60

2 release files

0.59

2 release files

0.58

2 release files

0.57

2 release files

0.56

2 release files

0.55

2 release files

0.54

2 release files

0.53

2 release files

0.52

2 release files

0.51

2 release files

0.50

2 release files

0.40

2 release files

0.35

2 release files

0.34

2 release files

0.33

2 release files

0.32

2 release files

0.31

2 release files

0.25

2 release files

0.24

2 release files

0.23

2 release files

0.22

2 release files

0.21

2 release files

0.20

2 release files

0.19

2 release files

0.18

2 release files

0.15

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page