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

Home » Public Forums » archive » 2D Pearson correlation coefficient
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: 2D Pearson correlation coefficient [message #87386 is a reply to message #87385] Thu, 30 January 2014 07:08 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> I would like to ask if someone know a code to calculate a 2D Pearson correlation as:
>
> r^2=(Sum wi*(Mi-M)*(Oi-O))^2 /((Sum wi*(Mi-M)^2)*(Sum wi*(Oi-O)^2))
>
> IDL has C_Correlate and R_correlate but none of them include the wi factor.


As far as I know, IDL does not do weighted correlations. It would not take you long to compute it, though. Basically, all you would have to do is replace "Sum" with the Total() function in the above equation...
[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: Coyote Library Updates
Next Topic: Using openCV in IDL

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

Current Time: Sat Oct 11 07:57:32 PDT 2025

Total time taken to generate the page: 0.15985 seconds