comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: polynomial fitting constrained to be non-decreasing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: polynomial fitting constrained to be non-decreasing [message #81183] Tue, 21 August 2012 07:07 Go to next message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Monday, August 20, 2012 3:57:15 PM UTC-4, nata wrote:
> Hi All,
>
>
>
> I need an algorithm for polynomial fitting constrained to be non-decreasing. The idea is to have a polynomial expression fitting a set of points where its derivative is always positive.
>
>
>
> I found some information on the web but I would like to know if you have some code or ideas of how to implement that easily.
>
> Thank you for your help,
>
>
>
> nata

Hi N,

Have a look at constrained_min.pro distributed with IDL. The example they give is fitting a 4th order polynomial with constraints. It sounds like you've only got one constraint, and that the first derivative is ge 0?

-Russell
Re: polynomial fitting constrained to be non-decreasing [message #84692 is a reply to message #81183] Tue, 21 August 2012 07:43 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I don't think that the Generalized Reduced Gradient Method will solve the problem correctly...
It seems to me that a least-square polynomial "criterion" is required in order to get a good fit. Otherwise, the constraints will be respected but the final solution won't be the best one.

The best algorithm I have found is explained here:
http://www.jstor.org/stable/2984333

My poor mathematical background is not helping much... Anyway, any help will be appreciated,

nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Obtain all child widgets
Next Topic: evenly spaced vector

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:37:06 PDT 2025

Total time taken to generate the page: 0.00762 seconds