[SciPy-Dev] Splines

denis denis-bz-py@t-online...
Thu Mar 28 12:44:59 CDT 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