Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: ekpirical histogram of a density function
Replies: 1   Last Post: Jun 8, 2012 11:54 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ImageAnalyst

Posts: 12,932
Registered: 12/26/06
Re: ekpirical histogram of a density function
Posted: Jun 8, 2012 11:54 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

kumar vishwajeet
How is that a 50 dimensional array? It seems to me to be a 2 dimensional array where each row of X could contain one of your X1, X2, etc. vectors. So your X matrix would be 10000 rows by 50 columns. That is a 2D matrix. To get the mean of each row, you'd do

meanOfRows = mean(X, 2); % Take mean of each row going along the 50 columns.

If you want the probability density function of X I'm not sure why you're doing the covariance. Why not just take the hist of the whole thing and normalize:
pdfX = hist(X) / numel(X);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.