Skip to main content

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:

Christoph Gohlke

License:

BSD 3-Clause

Version:

2025.1.1

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):

  • CPython 3.10.11, 3.11.9, 3.12.8, 3.13.1 64-bit

  • NumPy 2.1.3

Revisions

2025.1.1

  • Drop support for Python 3.9, support Python 3.13.

2024.5.24

  • Fix docstring examples not correctly rendered on GitHub.

  • Support NumPy 2.

2024.1.6

  • Add type hints.

  • Drop support for Python 3.8 and numpy 1.22 (NEP 29).

2022.9.12

  • Drop 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akima-2025.1.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distributions

akima-2025.1.1-cp313-cp313-win_arm64.whl (14.7 kB view details)

Uploaded CPython 3.13Windows ARM64

akima-2025.1.1-cp313-cp313-win_amd64.whl (16.0 kB view details)

Uploaded CPython 3.13Windows x86-64

akima-2025.1.1-cp313-cp313-win32.whl (15.1 kB view details)

Uploaded CPython 3.13Windows x86

akima-2025.1.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

akima-2025.1.1-cp313-cp313-macosx_11_0_arm64.whl (13.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

akima-2025.1.1-cp313-cp313-macosx_10_13_x86_64.whl (13.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

akima-2025.1.1-cp312-cp312-win_arm64.whl (14.7 kB view details)

Uploaded CPython 3.12Windows ARM64

akima-2025.1.1-cp312-cp312-win_amd64.whl (16.0 kB view details)

Uploaded CPython 3.12Windows x86-64

akima-2025.1.1-cp312-cp312-win32.whl (15.1 kB view details)

Uploaded CPython 3.12Windows x86

akima-2025.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

akima-2025.1.1-cp312-cp312-macosx_11_0_arm64.whl (13.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

akima-2025.1.1-cp312-cp312-macosx_10_13_x86_64.whl (13.2 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

akima-2025.1.1-cp311-cp311-win_arm64.whl (14.7 kB view details)

Uploaded CPython 3.11Windows ARM64

akima-2025.1.1-cp311-cp311-win_amd64.whl (15.9 kB view details)

Uploaded CPython 3.11Windows x86-64

akima-2025.1.1-cp311-cp311-win32.whl (15.0 kB view details)

Uploaded CPython 3.11Windows x86

akima-2025.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (32.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

akima-2025.1.1-cp311-cp311-macosx_11_0_arm64.whl (13.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

akima-2025.1.1-cp311-cp311-macosx_10_9_x86_64.whl (13.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

akima-2025.1.1-cp310-cp310-win_amd64.whl (15.9 kB view details)

Uploaded CPython 3.10Windows x86-64

akima-2025.1.1-cp310-cp310-win32.whl (15.0 kB view details)

Uploaded CPython 3.10Windows x86

akima-2025.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (32.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

akima-2025.1.1-cp310-cp310-macosx_11_0_arm64.whl (13.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

akima-2025.1.1-cp310-cp310-macosx_10_9_x86_64.whl (13.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file akima-2025.1.1.tar.gz.

File metadata

  • Download URL: akima-2025.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1.tar.gz
Algorithm Hash digest
SHA256 bbefb5c18c60e9cc37b202a15782612e0a48f35d8f01afd3638aeaa98a34fe4f
MD5 a051ff7aeadb7b2d9c23f01a1d15ef3a
BLAKE2b-256 fe750348e7e235a1597fbad1a5b5659e7bd2ab2fa2f8b16e10fdc078e4dda0f6

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-win_arm64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp313-cp313-win_arm64.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: CPython 3.13, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 a80d43febc27ec831b03d4926a83fe035aab665e0a4089cef77fe8ca87039e4d
MD5 096db43994fee3b3bc378c436d64d71e
BLAKE2b-256 39cb0300bbf248cff0b193f11bf49fc054dbaf044796bac03c077f34d5de605c

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7b740eb2923fe746dd3e1f4baee5179e8a1e1fdaf443c9912e7c722f8a1da6d8
MD5 5453f73c9d7269ba43772b0c64a50666
BLAKE2b-256 d979bc8587c41eaa6bb95f8032c48fd3e1110b4288a0d00c08012a4516525bd3

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-win32.whl.

File metadata

  • Download URL: akima-2025.1.1-cp313-cp313-win32.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 5cefdda1ba730e3640566677d2c3251910d35b1a73db308ad2458e2f8b4a9003
MD5 b031841fa9fa67ad51371b744524e451
BLAKE2b-256 5272b4ad09384eafb7bd335f3632f674a08d405bf7ce9eb75365b92d0af93171

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f37cbf4023e7da76f9b8f4edd32e81e07b2fe903f58e0ef5917cd2f61bbbae4
MD5 ee941d56cfbf8f24be51545d482b621b
BLAKE2b-256 c0efdda278b66d2fdd2b5f43fda61a67f2538b3c64a38981ee38a9e9b0c412d8

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcff7666f008d89b54078f2c57bd9e5e2cbe178720ff58c95200805138f25912
MD5 dcbd31472186b8e631c949ff2e6ac13e
BLAKE2b-256 b4afb07e962a533c0c672b83e83e4514e3739df78f195daad12d283f32420a92

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 398c7afd7042c3c73d24f5b1c16fe14374da8605f2bb090a302537edc855680d
MD5 dbddd732b3d8657509b0836c767f089b
BLAKE2b-256 e2d339552bf5a98474c9e42edd9f99a186654112418328af1edc3d2332247b0f

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-win_arm64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp312-cp312-win_arm64.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: CPython 3.12, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 06e9921398cd454cd8a238e7b082bf9404517a1bd36bf600ec02e72cbaf08dbd
MD5 ba52698168db4f6ce45211b5c9bdcedc
BLAKE2b-256 09d516e36b3243c28708261e723d58b9e66ae5408d005e678bf1cee2fb323361

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34dc0d9ed2b6ca39c280c4490576774818edf7751a4a8425dbd07f2f431f0548
MD5 4e21be4253c81f9b698c452a0560aa56
BLAKE2b-256 ec96934f4f38c0741b78ffe5e570cacd37fbc1f00a134131606f6bdaa7b4da22

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-win32.whl.

File metadata

  • Download URL: akima-2025.1.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 27d4b467b61a1ce1fcbebec5c3803bc7a102e96cb1d0249a1cd7b0edd9439382
MD5 3f86e7aef21398ec6a54fde76325a11b
BLAKE2b-256 64b02b1ea93b37c562d7d16ae9b9e8d547bd0e8db451c508a8d86fcf3e055278

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01c31ebd20482aaf35c0c157703af2b38ee00a9e435f238e6e08902886d29c9d
MD5 9f14e29bb5125a4af4eb3a4c6d047f09
BLAKE2b-256 eff0b02d4beb6fcd6357fccbf2ca46a4b963c305e64c853bfbc1a3aefb6dcc23

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 804e79970a454fde894039b7a4516cfee5b78c714755d96a36555880010fe193
MD5 3774ed730ac6297c5d6fea4ecf85cb6a
BLAKE2b-256 fd341fcf512e027557bc5a1a52ebeace569919fe063d63b532bc96c683737e40

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 55cd5f24080911d47025ee56658a8c9e7d844b89eae08c85273e3ce06d515342
MD5 9a3dce979998049a6efd6c2892bc6f75
BLAKE2b-256 61f52bacd1a4fbb66479ce35405b4bd06be4b3bd459573b279a63c73a458989a

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-win_arm64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp311-cp311-win_arm64.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: CPython 3.11, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 de3a4b1b2a1814bc77e9fc45b26b5ffe89f8fdb65354b005109d74f06d3b534f
MD5 75e093f75d17b03c85bb9b9ce0d534ac
BLAKE2b-256 857cf5dd08d5795e3a4749ac9293688f1a9985abf891dc3c96fbb51dfcad3129

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cca6269e5bce74479c80785a2a6160c657b9ce012e5e018c47723f560c302eb8
MD5 c2b74fcc6507c6ad77371764fd5265b0
BLAKE2b-256 40d101438d1649d01d13cf2152571d135c83bae1d65f80e134075559a659d8c8

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-win32.whl.

File metadata

  • Download URL: akima-2025.1.1-cp311-cp311-win32.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bfb9b9916b964e4154f5738086c2d66b21b695ecc3a79fd00ceb3f0a36c0f34f
MD5 31adf9c9090af6c1086bed639cbb57c7
BLAKE2b-256 79309865bfcc85d134a088b23bfc9a090f06f8f03e95dc2cdebfad1e4cac1085

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc5c6b9c1a378c6ba8ba47285ba8fe3782dd0005443349ea20c3f0c8d557a8f8
MD5 9be3308ed2736c8229422f42f18e0704
BLAKE2b-256 f8b29f7351194f47f1e86e290fce0f24e13912deab164cc85f770fc37bee6c9b

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ad05e6e1550f1371efabefb44a8e5c89408b5bb789b1618005eea0ed773227c
MD5 f2dea0afd0de824a243430aeff2b8e6b
BLAKE2b-256 2573c6f5cbaf8354027321e2c2d7fe8c9f6482cf036deb0d3a7a541a82702a4e

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6fb8b0e1b39a6f4cf481652857405fa307ac4cadff0bacfa018128d037449b3f
MD5 1a0f629f507ef6f22ae9725a034d5304
BLAKE2b-256 24588027d9b5a5dfdf2d61c0ae640295b9b050d61b7f0b881d6b8735b1002de3

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: akima-2025.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 33b91dd5608076cdcff07e20abf449f940c1691b6967aedc04cf823308f51ea2
MD5 fa3a2437083a97a26755bde55d6d8494
BLAKE2b-256 685907858eb396805acf8eda561fdac0373c9f20a87bb7fd6ac7dec3cb6fec41

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp310-cp310-win32.whl.

File metadata

  • Download URL: akima-2025.1.1-cp310-cp310-win32.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for akima-2025.1.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 56e3550ceffee598464af1d5479abd26a239660067d85dbeb77d03622b03eabd
MD5 28dcf01e2586f4e8915c05ce87cb2e76
BLAKE2b-256 70084958f2094c0dba5dc6efc2a90b385e4b709319f3e8f3df40d2747a559629

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b94ee6ec1e94718cb4ec60b35ad3e13cb254ba80bbde73137e9936860e222a2
MD5 4309839a449b4d0a1085cd118d74a272
BLAKE2b-256 b41118626a524eb5269b4b7db96160b50c3aff3bceb4d99d6cb5acdaf6e69c2e

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd82b846c4f7e960fe12e90b8c36a66883ace0db438317799d742cae1e5a8b3a
MD5 c342d1102ec90a20881f55d6293ef39c
BLAKE2b-256 49077cb40f5338ccdc5f9d718eed4b598986e0dcbce801f090d15e03d3c7884d

See more details on using hashes here.

File details

Details for the file akima-2025.1.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for akima-2025.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 206c1b0ccf2e036c3d661d56b11eb1f7ce6731526cb2a8ace1b57c2137b8130d
MD5 f629d788afa18129d0a078ec3cd241fc
BLAKE2b-256 ce9634444300aac814a83a7f06f5c289fba0f5eb317c20a41f32d98fae63c6c5

See more details on using hashes here.

Supported by

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