random number generator for linear distribution
버전 1.0.0.0 (1.45 KB) 작성자:
Samuel Cheng
Random number generator for linear distribution.
Return random variable(s) with linear distribution within [0,1] and 0 outside; m specifies the slope
In other word
P(x)= mx+b if 0<=x<=1
P(x)= 0 otherwise
where b=1-m/2 as int P(x) should be 1
Usage: ran=randl(m,SIZE)
E.g. X=randl(1,[20,20])
X is matrix with size [20,20] and with distribution
p(x)=x+0.5 if 0<=x<=1 and p(x)=0 otherwise
인용 양식
Samuel Cheng (2024). random number generator for linear distribution (https://www.mathworks.com/matlabcentral/fileexchange/7395-random-number-generator-for-linear-distribution), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R12
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Random Number Generation에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |