Skip to main content

A package for N-linear regular grid interpolation

Project description


interpylate

interpylate is a Python library for N-linear regular grid interpolation. It provides a flexible and efficient method to interpolate N-dimensional arrays using a N-linear approach.

It can be useful for image interpolation and its 3D (or more) equivalent.

Installation

pip install interpylate

Usage

from interpylate import NLinearRegularGridInterpolator

# Create an instance of the interpolator
interpolator = NLinearRegularGridInterpolator(dim)

# Evaluate the interpolation at specified coordinates
interpolated_values = interpolator.evaluate(NDarray, continuous_inds)

# Compute the gradient of the interpolated array
gradient = interpolator.grad(NDarray, continuous_inds, evaluate_too=False)

# Compute the hessian of the interpolated array
hessian = interpolator.hess(NDarray, continuous_inds, grad_too=False, evaluate_too=False)

Documentation

For detailed documentation, please refer to the interpylate documentation.

Examples

You can find usage examples in the examples directory of the interpylate GitHub repository.

Contributing

Contributions to interpylate are welcome! If you have any bug reports, feature requests, or want to contribute code, please visit the GitHub repository.

License

interpylate is licensed under the CeCILL License. See LICENSE for more information.

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

interpylate-1.0.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

interpylate-1.0.0-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

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