Is there a way to get 10-base lognormal distribution data?
4 ビュー (過去 30 日間)
古いコメントを表示
I want to obtain a 10-base lognormal distributed data set. (mean & std values which I set)
I know that I can get a lognormal distribution data set using the MATLAB lognrnd function.
However, this data is e-base lognormal.
Is there a way to get 10-base lognormal distribution data?
example)
N = lognrnd(5, 10, [1,10000]);
mean(log(N)) = 5
std(log(N)) = 10
-> this is e-base lognormal distribution, but I want 10-base lognormal distribution data set
Thanks :)
2 件のコメント
回答 (1 件)
Bruno Luong
2023 年 9 月 18 日
編集済み: Bruno Luong
2023 年 9 月 19 日
log10rnd = @(mu,sigma, varargin) lognrnd(log(10)*mu, log(10)*sigma, varargin{:});
N = log10rnd(5, 10, [1 1000000]);
% Check
mean(log10(N))
std(log10(N))
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!