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.

조회 수: 2 (최근 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