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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for interpylate-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38233b9e28e2f969a720de91599bb525059dba28a5e4369dae831e9a9e11ae5 |
|
MD5 | d912e9350e276054f8f019f9de3bbdeb |
|
BLAKE2b-256 | dd789704718a8e795aa79ac55fb3469aaeb6fc6a1e5900047e65b927dba4d806 |