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
ダウンロード: 47
更新 2016/11/18

ライセンスの表示

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 AnswersRandom 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