Metadata-Version: 2.4 Name: akima Version: 2026.8.8 Summary: Akima Interpolation Home-page: https://www.cgohlke.com Author: Christoph Gohlke Author-email: cgohlke@cgohlke.com License: BSD-3-Clause Project-URL: Bug Tracker, https://github.com/cgohlke/akima/issues Project-URL: Source Code, https://github.com/cgohlke/akima Platform: any Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Science/Research Classifier: Intended Audience :: Developers Classifier: Operating System :: OS Independent Classifier: Programming Language :: C Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Programming Language :: Python :: 3.14 Classifier: Programming Language :: Python :: 3.15 Requires-Python: >=3.12 Description-Content-Type: text/x-rst License-File: LICENSE Requires-Dist: numpy>=2.1 Dynamic: author Dynamic: author-email Dynamic: classifier Dynamic: description Dynamic: description-content-type Dynamic: home-page Dynamic: license Dynamic: license-file Dynamic: platform Dynamic: project-url Dynamic: requires-dist Dynamic: requires-python Dynamic: summary Akima Interpolation =================== 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: 2026.8.8 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.12.10, 3.13.15, 3.14.7, 3.15.0rc 64-bit - `Numpy `_ 2.5.2 Revisions --------- 2026.8.8 - Make C extension ABI3 and free-threading compatible. - Drop support for Python 3.11 and numpy 2.0 (SPEC0). - Support Python 3.15. 2026.1.18 - Use multi-phase initialization. - Improve code quality. 2025.8.1 - Drop support for Python 3.10, support Python 3.14. 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 - … Refer to the CHANGES file for older revisions. 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()