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 visualizzazioni (ultimi 30 giorni)
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 Commento
Sharmin Kibria
Sharmin Kibria il 25 Giu 2021
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?

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by