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

Home » Public Forums » archive » Re: linear fit y=ax
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: linear fit y=ax [message #46670 is a reply to message #46667] Wed, 07 December 2005 08:48 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
Paolo Grigis wrote:
>
>
> lajam@caramail.com wrote:
>
>> Hello,
>>
>> I have a very easy question but I didn't find the answer in the IDL
>> reference guide. I want to fit data with a linear fit y=ax. I want to
>> impose my fit to pass by zero. I have looked at the linfit, regress,
>> ... functions and I didn't understand how to adapt these functions for
>> my problem. I have tried with regress:
>> result=regress(desired_value,calculated_value,weigths) but I'm not sure
>> that it's the regular way to obtain calculated_value=A*desired_value.
>
>
> try: total(y)/total(x)
actually, I meant total(y*x)/total(x*x)
>
>
> Ciao,
> Paolo
>
>
>> Could someone help me, please?
>>
>>
>> Thanks,
>> Cedric
>>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Creating Panels in iTools
Next Topic: netCDF 3.6.0.

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

Current Time: Sat Oct 11 05:18:24 PDT 2025

Total time taken to generate the page: 0.23908 seconds