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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| liblip-0.91.tar.gz | 1.9 MB | Without provenance | Details for liblip-0.91.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl | CPython 3.9 | CPython 3.9 | macOS 10.9+ x86-64 | Details for liblip-0.91-cp39-cp39-macosx_10_9_x86_64.whl |
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
|
Security for liblip 0.91
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.