Normal Random number generation
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to generate random numbers from a standard normal distribution with decreasing standard deviation that lies between 0 and 1. First, what is meant by decreasing standard deviation? Secondly, randn generates normal distribution random numbers. But how to limit them between 0 and 1?
댓글 수: 0
채택된 답변
James Tursa
2017년 3월 9일
편집: Walter Roberson
2017년 3월 9일
댓글 수: 7
Walter Roberson
2017년 3월 15일
Decreasing standard deviation would result in an algorithm with similarities to Simulated Annealing.
추가 답변 (1개)
Walter Roberson
2017년 3월 9일
My interpretation is that the normal distribution is to be unbounded, not restricted to the range [0 1], but that the standard deviation used is to start and 1 and decrease to 0. For example,
SD = linspace(1, 0, 20)
results = randn(1,20) .* SD
That would give you 20 results with stand deviation decreasing from 1 to 0.
As for why... I don't know?
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!