필터 지우기
필터 지우기

Rand function in matlab

조회 수: 1 (최근 30일)
gurpreet kaur
gurpreet kaur 2015년 8월 11일
답변: Walter Roberson 2015년 8월 11일
hello how rand function works to create random chromosomes or random solutions. i am working on image demosaicing and want to create interpolated pixels by using rand function.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 8월 11일
Explain more. I don't know what a "random chromosome" is in regards to an image. I also don't know how you'd demosaic an image using the rand() function. I've only heard of it being done with a deterministic algorithm, not random locations.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 11일
https://en.wikipedia.org/wiki/Mersenne_Twister describes the algorithm used for the default random number generator in MATLAB (in all releases for a number of years now, but it was different before.)
However, knowing how the random number generator works is not going to help you. All you need to know about it for your purpose is that it generates values that are statistically equivalent to random for all purposes that you are likely to use, together with the fact that the sequence is repeatable if you use the same "seed".
Perhaps you want to look at ga()

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by