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

Home » Public Forums » archive » recommendations for curve fitting
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
recommendations for curve fitting [message #54946] Tue, 24 July 2007 10:55 Go to next message
Josh is currently offline  Josh
Messages: 21
Registered: June 2007
Junior Member
i'm looking to add a trend- / fit-line to my plotted data, and not
finding any really nice and easy way to do so. the plot is currently
being generated with the PLOT command, and I'm not looking for
anything much more complicated than a quadratic fit (probably even
just linear). i tried using IPLOT and adding a curve fit there, but
it didn't work very well and was kind of awkward.

does anyone have any good recommendations for fitting a trendline to a
scatter plot? as i said, it will probably be as simple as linear /
quadratic in nature.

thanks.
Re: recommendations for curve fitting [message #55027 is a reply to message #54946] Wed, 25 July 2007 14:26 Go to previous message
Josh is currently offline  Josh
Messages: 21
Registered: June 2007
Junior Member
On Jul 24, 11:55 am, Josh <joshuamonta...@gmail.com> wrote:
> i'm looking to add a trend- / fit-line to my plotted data, and not
> finding any really nice and easy way to do so. the plot is currently
> being generated with the PLOT command, and I'm not looking for
> anything much more complicated than a quadratic fit (probably even
> just linear). i tried using IPLOT and adding a curve fit there, but
> it didn't work very well and was kind of awkward.
>
> does anyone have any good recommendations for fitting a trendline to a
> scatter plot? as i said, it will probably be as simple as linear /
> quadratic in nature.
>
> thanks.


thanks for the suggestions, all. i actually thought I had deleted
this post, because i found sufficient fitting routines in idl. that's
what I get for not RTFM.
-josh
Re: recommendations for curve fitting [message #55029 is a reply to message #54946] Wed, 25 July 2007 12:19 Go to previous message
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
On Jul 24, 11:55 am, Josh <joshuamonta...@gmail.com> wrote:
> i'm looking to add a trend- / fit-line to my plotted data, and not
> finding any really nice and easy way to do so. the plot is currently
> being generated with the PLOT command, and I'm not looking for
> anything much more complicated than a quadratic fit (probably even
> just linear). i tried using IPLOT and adding a curve fit there, but
> it didn't work very well and was kind of awkward.
>
> does anyone have any good recommendations for fitting a trendline to a
> scatter plot? as i said, it will probably be as simple as linear /
> quadratic in nature.
>
> thanks.

Craig Markwardt's MPFIT routine does an outstanding job of fitting
whatever function you like to the data. Look here for a good tutorial
and examples.

http://cow.physics.wisc.edu/~craigm/idl/fitting.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Randomize array order
Next Topic: Extrusion

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

Current Time: Sun Oct 12 09:21:45 PDT 2025

Total time taken to generate the page: 0.72150 seconds