範囲が[0.42,1.19]の対数正規分布を作成したいと思います。そのいくつかの要素は、として与えられD=[1.19,1.00,0.84,0.71,0.59,0.50,0.42]
ます。平均は0.84
、標準偏差をできるだけ小さくする必要があります。また、累積分布関数の90%(=粒子の90%)がの間にあることも示されています0.59 and 1.19
。
与えられた条件を組み込んだこの対数正規分布のすべての要素を知ったら、そのpdfを見つけることができます。これは私が必要としているものです。これが私が試した簡単なステップです:
D=[1.19,1.00,0.84,0.71,0.59,0.50,0.42];
s=0.30; % std dev of the lognormal distribution
m=0.84; % mean of the lognormal distribution
mu=log(m^2/sqrt(s^2+m^2)); % mean of the associated normal dist.
sigma=sqrt(log((s^2/m^2)+1)); % std dev of the associated normal dist.
[r,c]=size(D);
for i=1:c
D_normal(i)=mu+(sigma.*randn(1));
w(i)=(D_normal(i)-mu)/sigma; % the probability or the wt. percentage
end
sizes=exp(D_normal);