Skip to content

Instantly share code, notes, and snippets.

@tito
tito / pchip_interpolate.py
Created April 30, 2016 13:17
Pchip interpolation implementation in pure Numpy (no scipy dependency, suitable for Android.)
# coding=utf-8
"""
Pchip implementation in pure numpy
.. author:: Michael Taylor <mtaylor@atlanticsciences.com>
.. author:: Mathieu Virbel <mat@meltingrocks.com>
Copyright (c) 2016 Michael Taylor and Mathieu Virbel
Permission is hereby granted, free of charge, to any person obtaining a copy