[SciPy-user] using UnivariateSpline

Robert Kern robert.kern at gmail.com
Fri May 22 15:57:14 EDT 2009


On Fri, May 22, 2009 at 14:57, David Warde-Farley <dwf at cs.toronto.edu> wrote:
> I must be crazy, but how does one actually USE UnivariateSpline, etc.
> to do interpolation? How do I evaluate the spline at other data after
> it's fit?
>
> There seems to be no "evaluate" method or equivalent to splev.

    def __call__(self, x, nu=None):
        """ Evaluate spline (or its nu-th derivative) at positions x.
        Note: x can be unordered but the evaluation is more efficient
        if x is (partially) ordered.

        """

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list