フィルターのクリア

how to make lognormal distribution with random numbers?

1 回表示 (過去 30 日間)
Pritha Pande
Pritha Pande 2017 年 7 月 12 日
回答済み: Walter Roberson 2017 年 7 月 12 日
I want lognormal distribution for number ranging from 0.1 to 30? It is possible to make?
  1 件のコメント
Torsten
Torsten 2017 年 7 月 12 日
編集済み: Torsten 2017 年 7 月 12 日
Not clear what you mean.
You are given parameters "mu" and "sigma" of a lognormal distribution and you want to generate random numbers from this distribution ?
https://en.wikipedia.org/wiki/Log-normal_distribution
Best wishes
Torsten.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 7 月 12 日
First create a probability distribution object with distribution 'lognormal'; https://www.mathworks.com/help/stats/makedist.html#inputarg_distname . Then truncate the distribution; https://www.mathworks.com/help/stats/prob.truncatabledistribution.truncate.html

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by