フィルターのクリア

To generate non-uniform data points

21 ビュー (過去 30 日間)
Aditya Shukla
Aditya Shukla 2015 年 6 月 26 日
回答済み: Guillaume 2015 年 6 月 26 日
Hi all,
I have a query regarding generation of non uniform data points .
rand(m,n):It generates a mxn matrix of uniformly distributed pseudorandom numbers between{0,1}.
As I require non-uniformally distributed data points (e.g. random C shaped networks), how can i achieve this or which function to be used.

採用された回答

Guillaume
Guillaume 2015 年 6 月 26 日
If you have the statistics toolbox you can use random to generate random numbers from a distribution that you'd specify (with makedist or fitdist).
Otherwise, you'll have to start with a uniform random distribution or normal random distribution (i.e. rand or randn, respectively) and rescale to your distribution. This is what random does anyway.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by