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

Home » Public Forums » archive » Re: Piecewise curve fitting in idl
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: Piecewise curve fitting in idl [message #61901 is a reply to message #61793] Sun, 03 August 2008 21:58 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
d.poreh@gmail.com writes:

> On Jul 31, 1:21�pm, Wox <nom...@hotmail.com> wrote:
>> On Thu, 31 Jul 2008 03:30:22 -0700 (PDT), d.po...@gmail.com wrote:
>>> Folks
>>> How we can do the piecewise curve fitting in idl. Say we have an array
>>> that this array has got 2 or 3 trends in data and we want to fit a
>>> liner curve for each trends. In MATLAB curve fitting tool, we can
>>> easily exclude or include a part of data and then fit a curve. How we
>>> can do this in IDL
>>> Cheers
>>> Dave
>>
>> Euhm, just do the fitting on the different parts? Or do you mean
>> fitting with a piecewise polynomial (i.e. spline: see e.g. IMSL_BSLSQ
>> or IMSL_CONLSQ)
>
> just doing the fitting on the difrent part. how we can select this
> parts and how we can fit a curve to these parts separatly?

I realize I'm coming into this discussion late. However, the IDL
Astronomy library has a nice procedure LINTERP which would be very
useful for an application like this. It would still need to be
interfaced to a fitting function. It would allow you to fit the
tabulated Y values, and in principle even the tabulated-X positions,
although I would NOT advise that.

For a graphical interface, IDL is probably not the best application
unless you want to write the whole program yourself.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Surface fitting image with missing data
Next Topic: Re: Edge detection and convert edges into polygons

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

Current Time: Fri Oct 10 00:55:40 PDT 2025

Total time taken to generate the page: 0.88067 seconds