Rank: 4054 based on 6 downloads (last 30 days) and 1 file submitted
photo

Simon Rogers

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Simon
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Nov 2007 Gamma Random Variate Generator Gamma Random Variate Generator Author: Simon Rogers statistics, probability, statistics gamma rand... 6 3
  • 4.33333
4.3 | 3 ratings
Comments and Ratings on Simon's Files View all
Updated File Comment by Comments Rating
30 Jun 2010 Gamma Random Variate Generator Gamma Random Variate Generator Author: Simon Rogers Kan

It saves me when I am trying to use gamma distribution in Embedded Matlab. Since gamma distribution is not supported, I must generate the rv by myself. When coding in Embedded Matlab, the only thing needs to be modified is to assert a bound for "un" as follows:

assert (k <= 10000);
un = rand(1,k);
g = (theta)*(g - sum(log(un),2));

15 Nov 2007 Gamma Random Variate Generator Gamma Random Variate Generator Author: Simon Rogers Hoffman, Matt

Nice not to have to do this myself. But your variable naming is a little confused in the file - in the source, you call theta beta. It's fine in the documentation, though, which is more important, I guess.

13 Sep 2007 Gamma Random Variate Generator Gamma Random Variate Generator Author: Simon Rogers Hieu, Huynh

Itis nice, thank

Top Tags Applied by Simon
probability, statistics, statistics gamma random variates
Files Tagged by Simon
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Nov 2007 Gamma Random Variate Generator Gamma Random Variate Generator Author: Simon Rogers statistics, probability, statistics gamma rand... 6 3
  • 4.33333
4.3 | 3 ratings

Contact us at files@mathworks.com