Akima Interpolation
Project description
Akima is a Python library that implements Akima’s interpolation method using a continuously differentiable sub-spline built from piecewise cubic polynomials [1]. The resultant curve passes through the given data points and will appear smooth and natural.
- Author:
- Organization:
Laboratory for Fluorescence Dynamics. University of California, Irvine
- License:
3-clause BSD
- Version:
2019.4.22
Requirements
Matplotlib 2.2 (optional for plotting)
Notes
The Akima module is no longer being actively developed.
Consider using scipy.interpolate.Akima1DInterpolator instead.
References
A new method of interpolation and smooth curve fitting based on local procedures. Hiroshi Akima, J. ACM, October 1970, 17(4), 589-602.
Examples
>>> from scipy.interpolate import Akima1DInterpolator >>> def example(): ... '''Plot interpolated Gaussian noise.''' ... x = numpy.sort(numpy.random.random(10) * 100) ... y = numpy.random.normal(0.0, 0.1, size=len(x)) ... x2 = numpy.arange(x[0], x[-1], 0.05) ... y2 = interpolate(x, y, x2) ... y3 = Akima1DInterpolator(x, y)(x2) ... from matplotlib import pyplot ... pyplot.title('Akima interpolation of Gaussian noise') ... pyplot.plot(x2, y2, 'r-', label='akima') ... pyplot.plot(x2, y3, 'b:', label='scipy', linewidth=2.5) ... pyplot.plot(x, y, 'go', label='data') ... pyplot.legend() ... pyplot.show() >>> example()
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 Distributions
Hashes for akima-2019.4.22-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a77f1c1a16faad06ee89db86c5e1b15cddcc3548159f81f5ca6e0d5b9360bc4 |
|
MD5 | a7743e41f2cbec1c5e2595077a3a48b6 |
|
BLAKE2b-256 | 498a25ef5e8c015691da5786d028f7969173a9c04b4dace1000fe9dc513d4c24 |
Hashes for akima-2019.4.22-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b8e2dfaf90ecb30b170fe2223a8f3ea6c4c49f62c852f7a114c63de8ef34f1 |
|
MD5 | 02f74ee451537c5e431b55620e40df51 |
|
BLAKE2b-256 | 03e7cdeca86e118e63af911474a746a406a1dc968419e91c3b0af3274bcd2594 |
Hashes for akima-2019.4.22-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ce6f3e444af5d2228c375c8fa0c87140ba6c9c8e6a7644cc4c424cb5be3ab6 |
|
MD5 | 9a02320fbb22d9c46fec2bd25f3ef51f |
|
BLAKE2b-256 | fc70d1c89e7cbb4b35c81b02298d5b852df3868d093c192da07c56f1a78aeb3a |
Hashes for akima-2019.4.22-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c64ad88912568c1cd5535ada9982e74d619848fcca27d2c978433ab3f4393e |
|
MD5 | 8b414fea1e9e6058ff482df55f587a12 |
|
BLAKE2b-256 | 03c39895f0a7a9bee3dac76874daa9ab11588bcf6610ef01a65414b6ace689ef |
Hashes for akima-2019.4.22-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 590a0bb58706b9a363ff64af0bd0742f44c1e78a9d6026e9a2b43f547bff405d |
|
MD5 | a8885111ec993c7efdd216ffbf827204 |
|
BLAKE2b-256 | 96e80c449a9b2e57dc5132228ab511b772f33a35bc034c010bc155b3579eb604 |
Hashes for akima-2019.4.22-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f245413511d00b65240faf5ec9779808cde696f8df47a48e40b8fa64b67ff36c |
|
MD5 | dd760b5cd64b63a597eba78c0a4018fa |
|
BLAKE2b-256 | 6f2743c968d6b1a421142200708956ec9a577dd588fb907c66d72e7682744c26 |
Hashes for akima-2019.4.22-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 037a77e6d9c9bb1d2cebd219f3241cd430e8805900a50e375ff3d7ce02926e35 |
|
MD5 | 942f4ed1ad6628c691e591eea9cc93df |
|
BLAKE2b-256 | 06f5cfdf28a50088f9c92cbfa7efd358280d9364ad60473634bd070033efece6 |
Hashes for akima-2019.4.22-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e154a4a7db2865483f4bb557b170a094377c5fc33e9ad43e914c4e0cf31eac89 |
|
MD5 | eabb7fd0ea4659b6b3c40f2b2a013811 |
|
BLAKE2b-256 | 5aee4700d6a3f1b2381a2c0f0df55123df77dcbbca7ec43f86886934cef2f66c |
Hashes for akima-2019.4.22-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b46a531960d8557215919c564b32b0367d418d28023358f006d937f786e468 |
|
MD5 | 46af95712088a76b95304897ec57e983 |
|
BLAKE2b-256 | ca9a80ad242ffee9ef811979b7fa94a1f65b8a784661a39a1d6267c4dbba6d25 |
Hashes for akima-2019.4.22-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c8ff517481367ff5409ee1ce8ca37043c8ddbb0dd7360824129d2f2fbb4b5c |
|
MD5 | 02d5649e578d7115aa1e02ddaf77058d |
|
BLAKE2b-256 | e88b9761bdd0fe014a6141d5fd50501819c2a77026467d0c291def53c2e970c1 |