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
- Version:
2019.1.1
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.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fee910c06a6d01484e968eaed2ae4c713d4976707176b08e5d3477dd76e7499 |
|
MD5 | 68a0af2ae4cceb7f6a5513c7474d656a |
|
BLAKE2b-256 | e56c3ec62e016f8126db012c62c54562b0b1b970be90738486eee0e77097beec |
Hashes for akima-2019.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e75d8783377a611e7161933b201d0e84843d7d64f8ddf8fee9645eafc55d25 |
|
MD5 | 148f35685299f8893b45d6bef9b55f23 |
|
BLAKE2b-256 | 648775bcc8c789347a5c5bbef893472ac18d866025e2ed16a2e812b94b5db6ca |
Hashes for akima-2019.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f726553e97bd722faa819c82a56bf0e2ffad5db252cb432f94a6c7560b1509ae |
|
MD5 | 32552b605355e926c2401e01c43425fa |
|
BLAKE2b-256 | b2265c90e5e65afec504bf7790bd66b91f356cec819827b08593402274467499 |
Hashes for akima-2019.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa6f7a9dccb4d3d89b7d46edf170926aa0682c49576da3b503493aa0e20faf5a |
|
MD5 | f284918e09aab0666b3ea58e439583d4 |
|
BLAKE2b-256 | b1ef0771a2e417fa082d067427ada8cc908661cd33c6c01538f779863f0c8990 |
Hashes for akima-2019.1.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36fc32b3eb3895a8074c04d09f6797b1ecff932540a0e8f09d8f774aff8b3592 |
|
MD5 | 8a772abc2b5e2dc34e26fe9d80c910ca |
|
BLAKE2b-256 | 9e60812627cc94814534b0e3b3b2eae7a96934036d8635814b53cba86f4a8a24 |
Hashes for akima-2019.1.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48578bd08a9d9fe2fbdf5e641972ba495f4d10af8f65c743f9e25a9a2e4b92e6 |
|
MD5 | ebb5b7a8bf780aa88439277d467272c4 |
|
BLAKE2b-256 | 696c8755af046c14c252ed2356267f7293438165baac94060b0feaa79fd3926f |
Hashes for akima-2019.1.1-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3f5e57c9a6558f464e641cbbd20b02b0b8573117961ece84e0963b398561cd |
|
MD5 | 1b51d95978964f698f3d567c9e319aaa |
|
BLAKE2b-256 | 724de7e525efcf2db7f9e4612fcd622524602a9dff327fb081f63f12c232d656 |
Hashes for akima-2019.1.1-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f93cc5b0dca9339726a928324f285cebed28e08c2b4208102adb450781511f |
|
MD5 | 4e468152daab95ce7fc7c59c801e3697 |
|
BLAKE2b-256 | 43dfbb2c124c09c5b67a1d30d0f8be626b3723aa91ffec0310411915a0da0550 |
Hashes for akima-2019.1.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84d24d589280cde19d7ba85435a27f8aad785c821b39967399758211fdfa0179 |
|
MD5 | b4fabab97900908bcf4dc371ec899c6c |
|
BLAKE2b-256 | c7a51b12f7d13c937c84530145c6d3c1ecad3f6b7eb322eff7722b90e5c50627 |
Hashes for akima-2019.1.1-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a7d7cbe92b356e4085e8f3b617ef90cbdc9bec39ef038ebc2b56aa7eb42475 |
|
MD5 | c28e00bdece954fabcc1b4e45a666f0a |
|
BLAKE2b-256 | f213d3d100e54dde33972a76ac1186266ca74e2b4ff1ee653a075be56f137afc |