Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

liblip

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liblip

Library for multivariate scattered data interpolation

  • 0.91
  • PyPI
  • Socket score

Maintainers
2

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc