Histogram normalisation: a question about terminology
조회 수: 2 (최근 30일)
이전 댓글 표시
num_bins = 30; % <-- note: I specify the "number of bins" and not the "bin width", which can be different from 1
% Case 1
histcounts(X,num_bins,'Normalization','probability');
histogram(X,'NumBins',num_bins,'Normalization','probability');
% Case 2
histcounts(X,num_bins,'Normalization','pdf');
histogram(X,'NumBins',num_bins,'Normalization','pdf');
Do I understand correctly that
- For Case 1, I get the "Relative Frequency Histogram" or an "empirical estimate of the Probability Mass Function"?
- For Case 2, - where I divide by the bin widths as well -, I get the an "empirical estimate of the Probability Density Function"?
답변 (1개)
Satwik Samayamantry
2023년 7월 14일
Hi Sim,
Yeah you got it right. Your understanding for both cases is correct.
댓글 수: 3
Steven Lord
2023년 8월 1일
See the description of the Normalization name-value argument on either of the histogram or histcounts documentation pages. It describes exactly what the Values property of the histogram or the first output of the histcounts function represent.
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!