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

Home » Public Forums » archive » least square matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
least square matrix [message #43027] Fri, 11 March 2005 01:33 Go to previous message
Matthias Demuzere is currently offline  Matthias Demuzere
Messages: 9
Registered: April 2004
Junior Member
Hi,

Because my question maybe still a bit unclear, here it is again:

I have a dataset of temperatures taken at hourly steps (k-value, ranging
from 1-24) for a whole
month (with i days). Now, I would like to compare each temperature Tk,i with
every other Tk,j with j the same number of days as in i. I would like to do
that comparison by least square methods like this

Matrix Ai,j = sum (Tk,i-Tk,j)^2

where the matrix Ai,j is a symmetrical matrix (because i,j are the same
day).

How can that be done in IDL?

I was thinking of some FOR statements, like this:

FOR i=1, i LE 31, i++ DO BEGIN
FOR j=1, j LE 31, j++ DO BEGIN
FOR k=1, k LE 24, k++ DO BEGIN
function
ENDFOR
ENDFOR
ENDFOR

But this doesn't seems to work really...Any idees, tips,...??

Thanks,
Matthias



--
************************************************************
************************************************************
Physical and Regional Geography Research Group
Redingenstraat 16
B-3000 Leuven
Belgium

Tel: +32 16 326453
Fax: +32 16 326400
E-mail: Matthias.Demuzere@geo.kuleuven.ac.be
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Extract an image
Next Topic: netCDF _FillValue attributes

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

Current Time: Fri Oct 10 11:46:56 PDT 2025

Total time taken to generate the page: 0.00613 seconds