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

Home » Public Forums » archive » Re: Newbie's question
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: Newbie's question [message #45898] Thu, 20 October 2005 17:07 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Thu, 20 Oct 2005 13:18:52 -0700, ChiChiRuiz@gmail.com wrote:

> Poly_fit doesn't really give me what I need. I don't need the
> coefficients of a quadratic equation, I want to know the best fit of the
> scatter plot to some power of x. I know it's not exactly power square,
> but it should be in that neighborhood. Even if I shift all data to the
> positive axis, i.e. y = a* (x-x0)^b, any x values less than x0 is still
> considered "negative". I don't know what else...maybe I'll try change of
> variable or something... thank you for your help.

Fitting to a single power law is a time honored tradition in many of
the precision-limited fields of physics (e.g. astronomy). The typical
approach is to fit a straight line to the log/log representation of
the data. The slope of the line is the exponent b. If your data have
negative values by artificial choice (e.g. time offset, etc.) simply
shift that choice to make them positive.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_set miracle II
Next Topic: Re: middle mouse button emulation in widget_draw

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

Current Time: Fri Oct 10 00:43:20 PDT 2025

Total time taken to generate the page: 0.39983 seconds