[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*Subject*: Re: Piecewise linear fitting*From*: "R.G.S." <rgs1967(at)hotmail.com>*Date*: Tue, 26 Jun 2001 16:29:56 -0600*Newsgroups*: comp.lang.idl-pvwave*Organization*: Internet Commerce & Communications*References*: <Pine.GSO.4.21.0106261641450.7217-100000@rac1.wam.umd.edu>*Reply-To*: "R.G.S." <rgs1967(at)hotmail.com>*Xref*: news.doit.wisc.edu comp.lang.idl-pvwave:25438

Mike Barker <animals@wam.umd.edu> wrote in message Pine.GSO.4.21.0106261641450.7217-100000@rac1.wam.umd.edu">news:Pine.GSO.4.21.0106261641450.7217-100000@rac1.wam.umd.edu... > 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

**References**:**Piecewise linear fitting***From:*Mike Barker

- Prev by Date:
**Re: chosing points along an image row with mouse** - Next by Date:
**svd experts?** - Prev by thread:
**Piecewise linear fitting** - Next by thread:
**chosing points along an image row with mouse** - Index(es):