Akima Interpolation
Project description
Akima is a Python library that implements Akima’s interpolation method described in:
A new method of interpolation and smooth curve fitting based on local procedures. Hiroshi Akima, J. ACM, October 1970, 17(4), 589-602.
A continuously differentiable sub-spline is built from piecewise cubic polynomials. It passes through the given data points and will appear smooth and natural.
This module is no longer being actively developed. Consider using scipy.interpolate.Akima1DInterpolator instead.
- Author:
- License:
BSD 3-Clause
- Version:
2024.1.6
Quickstart
Install the akima package and all dependencies from the Python Package Index:
python -m pip install -U akima
See Examples for using the programming interface.
Source code, examples, and support are available on GitHub.
Requirements
This revision was tested with the following requirements and dependencies (other versions may work):
Revisions
2024.1.6
Add type hints.
Remove support for Python 3.8 and 1.22 (NEP 29).
2022.9.12
Remove support for Python 3.7 (NEP 29).
Update metadata.
Examples
>>> import numpy >>> from matplotlib import pyplot >>> 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) ... 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-2024.1.6-cp312-cp312-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e16c5635cd0e27b8ebff0dd6a4d7f3b171c74d91ea0491fbaaede3024076cf |
|
MD5 | 62cc0f08bfcc0bc0a7b5b54a29d216db |
|
BLAKE2b-256 | 4229e04a8716b7c683ccb2a6da05f513a59fd4c042778e966466f9f4429de18e |
Hashes for akima-2024.1.6-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13425b5114b14379906f38bc4db54808608c57a79ac4fa32ed94d8d2f6c0b3e1 |
|
MD5 | aea055b704e678bdeeb75d9bc9189d9f |
|
BLAKE2b-256 | 20f5730e88b8c44da3bfabfbfd143f14cc1da04d8bf4c0d2af5a215b6ea202c8 |
Hashes for akima-2024.1.6-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a861bc7837849f5c34602e3ec78749034cf7aa3c5d5aba11314172a1630b3a91 |
|
MD5 | e4553eb8dfcb9f6f77e61869cb30dacc |
|
BLAKE2b-256 | b46ad87e686db0acf052d3bd780cde7ef5513a58bf5496f8036d22d9bfc9eb33 |
Hashes for akima-2024.1.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6cd9b461dafbf491f93d83e20c68af8a327dc10034b054bfc9a63bef6b27d5e |
|
MD5 | e9e615c9ab5867324eab5830973e7248 |
|
BLAKE2b-256 | ac3db5f96d342bdc319d550dc62ef9ff5e3460706253a5c1628e970fdb53c6bf |
Hashes for akima-2024.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b40c30b7fa835a48a6d91d45cc4967617c2e862cc7a8706ce18efdfd436e526 |
|
MD5 | cb6b540f65b0daf928e81dab38cc45ff |
|
BLAKE2b-256 | d0d038ace1cabc65a4c8499b0a5a8484bc221483184d05f632f851ff1e96d1d3 |
Hashes for akima-2024.1.6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3e5bfb6a0114a5f69f7dfa5cf6aa6bc7b557a028b8486025ad61923acbd3a2 |
|
MD5 | e65969c1408a25f8c5a7fe0ce11cadad |
|
BLAKE2b-256 | 26761e5af17396f31ba4e3c4b1bf92bed823c573a73f1663c0b4a0743405b641 |
Hashes for akima-2024.1.6-cp311-cp311-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd6d92584ba2edd58bd221bcc07b91705072f5479f956a88eee5159d4802163 |
|
MD5 | 46cb92a2d1697bbbfe5405ca11c9e3c9 |
|
BLAKE2b-256 | 4cce9d0d381bb7986c5cbd285db53edd2906ee206925ebb05a159a09a4978944 |
Hashes for akima-2024.1.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b55bb9fc28fd8612e45463b6326b4473feebfff795d27ea21003134a781c6ec |
|
MD5 | 2c20dcf89f56dedfec7edeecfdef401f |
|
BLAKE2b-256 | e46fb50121323a2ac2973c24783fbe13d6def4dd1c0ea93019dbc6d861ba6d46 |
Hashes for akima-2024.1.6-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afafdd2d18e4967fd79813c5ddd6a2f6bb6af09873e0a3d86cd54cb33e6c4f27 |
|
MD5 | a062af48add23de32c8946e8d6bf1204 |
|
BLAKE2b-256 | b491f9d49b9da752636332855c3286e4b51e96f9f8f191239a90805842c29387 |
Hashes for akima-2024.1.6-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a35131041aa43c8f1e79b373198fc741ff9b2798804664c96d90fc024e0c59f |
|
MD5 | 9220b01a325edde38856f1bb265c1b17 |
|
BLAKE2b-256 | 3729ad1c19bcbe95cfe09542b32320ee07faf3888192f0c72c61dbbd0d41e49b |
Hashes for akima-2024.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab724f9f7ec145230874a4bcc6172fd5d936c4089af458d400b7265f6d8b9584 |
|
MD5 | ff597059a2494373fed3470cb41772ff |
|
BLAKE2b-256 | 5555a34ba55c90e33e1b6cad89890fead98d7e738d5cbd79c6089c8a894fb685 |
Hashes for akima-2024.1.6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0e60981baf6745b482d1cbd7fdce2e6f82c66aab5036ef67d2e5f4ce843ef13 |
|
MD5 | 06b6e519939f5e8834210e8badd976bb |
|
BLAKE2b-256 | 404535733d26440b5eb68a0b374a726f3f342a40a49b6050e489ee110a0060be |
Hashes for akima-2024.1.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fec64ea432d3847511edb4f36292cdb6a89db29bd94197799623b28cf9a195 |
|
MD5 | 8c5d463664173a090e8fad9ad19c012b |
|
BLAKE2b-256 | c344c934a4f4b187f1646d270bb8f2a4ad0b499862b4876aa74460fca00e5eba |
Hashes for akima-2024.1.6-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192a93b68f9c73e561d6a715e070d1496590cad031ed19301a7891c913890aba |
|
MD5 | 573cf3c3c233b81b0d35cb65da9274a0 |
|
BLAKE2b-256 | ea1621ba68f8584203912c001973c19ee18eec0564b4bd9f3d35c1d7cb3f65fb |
Hashes for akima-2024.1.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 164eee1276f552bff94eec34def4676f80f6a0074b29e5aef0e49fdac0c0eb54 |
|
MD5 | 637c30950cba8b24bc52adcee85fc6f4 |
|
BLAKE2b-256 | b0d40f2d996255c8022a1eea34a86bff30a3f2bda46fd7589022d3f36894a4f1 |
Hashes for akima-2024.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aed68e77f2f2231b66f61f9b76a8039f17872bdee024d6ee3d74fa6a1da113f |
|
MD5 | 1ce2dc5c5ab3c4d75b69621c92b315ab |
|
BLAKE2b-256 | c1b63f9ab279e939148bdd457392dfaf763bec945a1ef18a6dedc69545e777ac |
Hashes for akima-2024.1.6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a8ba48b66d27febd136192b1e2915f015f3bb29d5b283bf605accf18cc90e5 |
|
MD5 | 9fa8266a4e2726a802f83f05cdb5d99c |
|
BLAKE2b-256 | f261de227b04567180993b49536e9e323e244f2276c9f6c495355b1d16616158 |
Hashes for akima-2024.1.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe820f86e556cf9f22ae007d8d856f801da0beece9e4ce0a02e74612e71ddb0 |
|
MD5 | 571db8873a6d50ae8628b7bb5492e9b1 |
|
BLAKE2b-256 | 44d426cce3cf9a9e2940526ea2c8adb2cb7afc035d8d4322df3ce810b11cf235 |
Hashes for akima-2024.1.6-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 763258d039c0a7943f46cbad1253bb8abd4a645f10f68c1ae8defa1e3e9a8278 |
|
MD5 | 43dedce8c825041d36978a8f8c1473ee |
|
BLAKE2b-256 | 48e4ea9fbafb2af6f636c7db7b530ad7bae00f484238c9d83af25d46c92fb4c8 |
Hashes for akima-2024.1.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0faa81f8035ccc8c43f395abdff9363e5b4e75edcf43afa5807ec077b1dbb6de |
|
MD5 | 2b97e0efb45a02010d0e0a39f689b3a6 |
|
BLAKE2b-256 | 07088dad0e6745531793baf688e52f48649bd748de13934d024a997d37db999b |
Hashes for akima-2024.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5eb732fae52d731f304395bf20614175dd14649b535c32948291de1ef04b9a8 |
|
MD5 | 2a11919ddfaf87440a3731a53b358b48 |
|
BLAKE2b-256 | 07c29d905463d2b36e0c0a1e310def576c702de82bbd3be536cdd94bbd9f2560 |
Hashes for akima-2024.1.6-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891ff53c6a5ca4adf9790d30f378af3e5883f98beade3d2109edf3496f127911 |
|
MD5 | a9f10f435df126bf2c64d7cf8c8bb65a |
|
BLAKE2b-256 | b3cdf875345af9e6b7feed3a81a64d0c31937b91363f04295c97e73334a4bba5 |