vector of truncated distributions
Afficher commentaires plus anciens
Hello, I would like to create a vector x such that
pd = makedist('Normal');
x(1)=truncate(pd,-inf,y(1));
x(2)=truncate(pd,-inf,y(2));
...
x(K)=truncate(pd,-inf,y(K));
I want to call this vector in CDF evaluations as follows
cdfeval=zeros(N,1)
for n=1:N
for k=1:K
if id(n)==id1(k)
cdfeval(n)=cdf(x(k),pi_point(n,:));
end
end
end
Is there any easy way to do this?
Réponse acceptée
Plus de réponses (1)
george pepper
le 18 Août 2019
0 votes
Catégories
En savoir plus sur GPU Computing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!