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

Home » Public Forums » archive » Re: Piecewise linear 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
Re: Piecewise linear fitting [message #25556] Tue, 26 June 2001 15:29
R.G.S. is currently offline  R.G.S.
Messages: 46
Registered: September 2000
Member
Mike Barker <animals@wam.umd.edu> wrote in message
news:Pine.GSO.4.21.0106261641450.7217-100000@rac1.wam.umd.ed u...
> Greetings,
>
> I would like to get my hands on an IDL routine that does a piecewise
> linear fit to data. The number of pieces is known but the locations of
> the break points are not. I don't have the time nor the expertise
> necessary to write it myself. Could anyone please direct me to such a
> program? I've done several lengthy searches but to no avail. I would
> greatly appreciate any help you could give.
>
> Thanks,
>
> Mike
>


Greetings,
I have some LOESS code if that is what you are interested, but of course
it is still in my typical poorly written hacky version.

So what is the rule for how to break the pieces up. Is it
every 'n' points makes a piece, or is it every 'x units' makes
a peice. (ACK, I can never remember if it is 'piece' as in I
want a piece of pie, or if it is 'peice' as in I want another
peice of ice. mmmm ice)

So, here is a solution if there is some constant rule (whether number
of points or constant unit interval):

Use histogram with reverse indices,
loop through the bins with your linear fitting (using poly_fit I guess).


hope this vague answer helps,


Cheers,
bob "my second histogram answer" stockwell
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: chosing points along an image row with mouse
Next Topic: svd experts?

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

Current Time: Wed Oct 08 14:56:41 PDT 2025

Total time taken to generate the page: 0.00993 seconds