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

Home » Public Forums » archive » Covariance 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
Re: Covariance Matrix [message #86848 is a reply to message #86847] Sat, 07 December 2013 05:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Amin Farhang writes:

> I have N observed data as a vector, and I need to compute its NxN covariance matrix, but IDL correlate function just return one value as the correlation (or covariance) between two vectors and do not return a matrix.
> So how can I compute NxN covariance matrix of below vector (for example):
>
> IDL> A = [1,2,3,4,5]

If you only have one vector, the best you can do is calculate the way
the numbers in the vector vary with respect to the mean of the vector.
In other words, you can calculate the variance.

To do a COvariance, you measure how one vector varies with respect to
one or more *other* vectors. Where is your vector B if you want to do a
covariance?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array -Time
Next Topic: Zooming in function graphics

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

Current Time: Wed Oct 08 19:24:33 PDT 2025

Total time taken to generate the page: 0.00420 seconds