How we can calculate the property density function of probability distribution of this signal x by changing the value of tau from 0 up to 1.
3 ビュー (過去 30 日間)
古いコメントを表示
If
x=(64;66;68;68;70;72;74;75;78;79;82;83;87;89);
mean(x); std(x);mu=70; s=1;
NB=sqrt(length(x)); %number of bins
Ns=14;%number of sample
NumberOfBins=NB
[counts,bins]=hist(x,NB)%
plot(bins,counts);
sum(counts);
counts=counts./sum(counts);
sum(counts);
figure
bar(bins,counts)
xlabel('Bins')
ylabel('Counts')
grid minor
hold on
mx=mean(x)
stv=std(x)
% to generate the probablity dnesity function values we are useing the
% command norm pdf normal probabiltiy density function
bins=bins(1):1:bins(end)
x_pdf= normpdf(bins,mu,s);
x_pdf=x_pdf./sum(x_pdf);
hold on
plot(bins,x_pdf,'r')% the evelute at bin points
legend('Histrogram','pdf')
1 件のコメント
Sharmin Kibria
2021 年 6 月 25 日
I was looking at your code but do not see any tau parameters in it. Can you elaborate what does 'tau' represent in this problem? I am not familiar with the term 'property density function'. Are you referring to 'probability density function' or pdf?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!