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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Randomize array order
Next Topic: Extrusion

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

Current Time: Sun Oct 12 20:04:57 PDT 2025

Total time taken to generate the page: 1.04131 seconds