[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fixed points piecewise-linear fitting
From: |
Ben Abbott |
Subject: |
Re: fixed points piecewise-linear fitting |
Date: |
Sat, 17 Mar 2012 17:32:50 -0400 |
On Mar 17, 2012, at 2:22 PM, Sergei Steshenko wrote:
> ----- Original Message -----
>> From: Ben Abbott <address@hidden>
>> To: Sergei Steshenko <address@hidden>
>> Cc: help-octave Octave <address@hidden>
>> Sent: Saturday, March 17, 2012 6:39 PM
>> Subject: Re: fixed points piecewise-linear fitting
>>
> [snip]
>>
>> I mean that linear least squares can be used to solve this problem.
>>
>> Ben
>
> I am not sure - because of _piecewise_-linear requirement. I am not even sure
> only one solution exists.
>
> Regards,
> Sergei.
After taking a closer look, I agree. A linear least squares approach will not
work.
Since I've been wanting a function that does this sort of thing, I put coded a
simple solution that results a piece-wise polynomial.
It includes the tex-info help as well as a demo. I used fsolve() to determine
the interpolating values. So, it is not speedy or efficient.
Ben
ppolyfit.m
Description: Binary data
- fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/17
- Re: fixed points piecewise-linear fitting, Juan Pablo Carbajal, 2012/03/17
- Re: fixed points piecewise-linear fitting, Ben Abbott, 2012/03/17
- Re: fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/17
- Re: fixed points piecewise-linear fitting, Ben Abbott, 2012/03/17
- Re: fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/17
- Re: fixed points piecewise-linear fitting,
Ben Abbott <=
- Re: fixed points piecewise-linear fitting, Juan Pablo Carbajal, 2012/03/17
- Re: fixed points piecewise-linear fitting, c., 2012/03/18
- Re: fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/18
- Re: fixed points piecewise-linear fitting, c., 2012/03/18
- Re: fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/18
- Re: fixed points piecewise-linear fitting, c., 2012/03/18
- Re: fixed points piecewise-linear fitting, Ben Abbott, 2012/03/18
- Re: fixed points piecewise-linear fitting, CdeMills, 2012/03/17
- Re: fixed points piecewise-linear fitting, Sergei Steshenko, 2012/03/17
- Re: fixed points piecewise-linear fitting, Martin Helm, 2012/03/19