필터 지우기
필터 지우기

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