Uniformly distributed weights that sum up to 1
버전 1.0.0.0 (998 Bytes) 작성자:
Yavor Kamer
Generates N uniformly distributed weights that sum up to 1
A common way to do this is to generate a uniformly random vector with rand(1,N) and then divide it by its sum. But, as you can see in the figure and the script, this creates biased distributions that undersample high values. The randUniWght function produces better sampling.
You can find more on the topic here
http://stats.stackexchange.com/questions/14059/generate-uniformly-distributed-weights-that-sum-to-unity
인용 양식
Yavor Kamer (2024). Uniformly distributed weights that sum up to 1 (https://www.mathworks.com/matlabcentral/fileexchange/60284-uniformly-distributed-weights-that-sum-up-to-1), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2015b
모든 릴리스와 호환
플랫폼 호환성
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 |