[SciPy-Dev] Splines
denis
denis-bz-py at t-online.de
Thu Mar 28 13:44:59 EDT 2013
Folks,
yet another little testcase for splines turns out to be quite funny:
http://imgur.com/Z9ikNCk
is splev / interp1d do on random-uniform X -> linspace Y --
X = np.r_[ 0, np.sort( np.random.uniform( size = nx - 2 )), 1 ]
Y = np.r_[ 0., np.arange(nx - 2), nx - 2 ]
interp1d-splev.py is in https://gist.github.com/denis-bz/5265158
While I guess this won't surprise spline experts
it does show HOW non-monotone splines can get
and the importance of boundary conditions.
cheers
-- denis
More information about the SciPy-Dev
mailing list