[SciPy-user] Does scipy have a function to...?
clintonwallen at gmail.com
Mon Sep 25 17:57:44 CDT 2006
You might look at Chebyshev polynomials. They have a "min-max of the error"
property. One place to start is
Don't know if there's any python code for using these.
On 9/25/06, Robert Kern <robert.kern at gmail.com> wrote:
> Bill Dandreta wrote:
> > What I want is a smooth curve that serves as an upper limit for a data
> > plot. I would like it to be close to the data at the local maxima.
> > Does such a function exist?
> No, not really. It would be quite tricky to construct such a beast. At the
> end would be a complete interpolating curve that goes through every point;
> however, this will almost certainly not be as "smooth" as you want it. You
> need to choose the length scale at which variations in the data are
> E.g. you need to find some means of determining why the curve should skip
> over A
> but try to get close to B.
> /* *\
> / A \
> * \_______
> Possibly limiting the order of an interpolating polynomial or spline will
> You might be able to formulate this as a constrained minimization problem
> scipy.optimize.fmin_cobyla(). Take some curve f(x), minimize (f(x) - y)
> the constraint (f(x) - y >= 0).
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> that is made terrible by our own mad attempt to interpret it as though
> it had
> an underlying truth."
> -- Umberto Eco
> SciPy-user mailing list
> SciPy-user at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user