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.

1 次查看(过去 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
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 CenterFile Exchange 中查找有关 Histograms 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by