Doubt determine peak value in histogram
古いコメントを表示
have all dear partner in excellent day.
Sorry for the inconvenience.
I have a doubt and maybe you could help me understand.
My question is the following:
Suppose we have a histogram formed by different values.
Y: Represents histogram difference values
X: Consecutive frames
Example:
2.15 3.45 3.67 2.34 1.09 2.20 2.15 .......
a low peak value = 1.09 Is that correct or not?
and what would be the value of that corresponds to half the peak value on the right slope of the peak?
Please be kind enough to clarify the doubt .. Thank you and again my apologize for the inconvenience
回答 (1 件)
Image Analyst
2019 年 3 月 17 日
編集済み: Image Analyst
2019 年 3 月 17 日
It is not correct. The lowest value in your data will be in the leftmost bin, which is not necessarily the tallest peak of the bins.
To get the tallest bin (peak value) you need to do
counts = histcounts(data);
[maxCounts, tallestBin] = max(counts);
What are your bin edges, or how many bins do you have and what is the range of your data?
カテゴリ
ヘルプ センター および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!