how to change the histogram to the vector?

2 vues (au cours des 30 derniers jours)
Dian Permatasari
Dian Permatasari le 27 Sep 2012
how to prove the histogram can be changed in the form of a vector?

Réponse acceptée

Image Analyst
Image Analyst le 10 Oct 2012
The histogram is normally already a vector of counts - the frequency of occurrence of values in your data. Nothing to convert - it's already a vector.
[counts values] = hist(data); % counts is a vector.
  2 commentaires
Dian Permatasari
Dian Permatasari le 11 Oct 2012
thank you. but, if the probability histogram is a vector? because I need to measure the similarity vector with one minus the correlation coefficient method.
Walter Roberson
Walter Roberson le 11 Oct 2012
What similarity vector is that?

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 10 Oct 2012
You could create a histogram plot, and then go into the resulting barseries object and retrieve the YData from that object, and compare it to the original counts, and then use that retrieved set of counts to create a second histogram that will then look just like the first. The fact that the vector of data contains enough information to recreate the histogram plot will establish that the histogram can be converted to the vector.
  10 commentaires
Walter Roberson
Walter Roberson le 12 Oct 2012
In the formula you show, what is the dot operator, as in
(P-Pbar) . (Q-Qbar)
Is it the dot product?
Dian Permatasari
Dian Permatasari le 14 Jan 2013
thank you.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by