transforming the distribution of variables
    5 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hello,
Would anybody know if there is a function in matlab to transform a continuous random variable x to a uniform distribution by using a cumulative distribution function (cdf) transformation?
Any comments and suggestions welcome.
Thank you
John
0 件のコメント
採用された回答
  Oleg Komarov
      
      
 2012 年 4 月 4 日
        You can call cdf specifying the type of distribution or you can call directly the specific distribution function. For a list of supported cdfs: cumulative distributions.
An example:
x = randn(1000,1);
y = normcdf(x,0,1);
hist(y,100)
2 件のコメント
  Oleg Komarov
      
      
 2012 年 4 月 4 日
				The Cumulative Distribution Function (CDF) maps some values into [0,1], i.e. uniform distribution on [0,1].
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!