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.

Author:Christoph Gohlke
Organization:Laboratory for Fluorescence Dynamics. University of California, Irvine
License:BSD 3-Clause
Version:2020.1.1

Requirements

Notes

The Akima module is no longer being actively developed.

Consider using scipy.interpolate.Akima1DInterpolator instead.

Examples

>>> 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.

Files for akima, version 2020.1.1
Filename, size File type Python version Upload date Hashes
Filename, size akima-2020.1.1-cp36-cp36m-win32.whl (13.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size akima-2020.1.1-cp36-cp36m-win_amd64.whl (15.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size akima-2020.1.1-cp37-cp37m-win32.whl (13.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size akima-2020.1.1-cp37-cp37m-win_amd64.whl (15.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size akima-2020.1.1-cp38-cp38-win32.whl (13.8 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size akima-2020.1.1-cp38-cp38-win_amd64.whl (14.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size akima-2020.1.1.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page