1 Oct 10:59
Re: unusual fitting problem
peter websdell <flyingdeckchair <at> googlemail.com>
2008-10-01 08:59:46 GMT
2008-10-01 08:59:46 GMT
Hello,
Thanks for the reply Pierre.
I may be misunderstanding you, but it seems to me that if I interpolate between two values, the relationship will be linear. What I need is for it to appear linear when plotted on a loglog scale.
I'm sure I'm not explaining this very well, owing to this not really being my field, so I've attached an image of the kind of curve I'm attempting to fit.
Please let me know if I'm just being a dunce.
Thanks again,
Pete.
2008/9/30 Pierre GM <pgmdevlist <at> gmail.com>
On Tuesday 30 September 2008 12:36:00 peter websdell wrote:Have you thought about modifying your data ?
> Howdy gang,
> I have an unusual fitting problem that has me totally stumped.
you want log(y) = a + b*log(x) ?
Use Y=log(y) and X=log(X), fit a straight-line the standard way and you should
get your parameters a & b.
That should be easier than trying to fit y=exp(a+b*log(x)) = exp(a) * x**b
_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user <at> scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
RSS Feed