source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/randgamma.m
Last change on this file was 37, checked in by , 15 years ago | |
---|---|
File size: 361 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function x = randgamma(a) |
2 | % RANDGAMMA Sample from Gamma distribution | |
3 | % | |
4 | % X = RANDGAMMA(A) returns a matrix, the same size as A, where X(i,j) | |
5 | % is a sample from a Gamma(A(i,j)) distribution. | |
6 | % | |
7 | % Gamma(a) has density function p(x) = x^(a-1)*exp(-x)/gamma(a). | |
8 | ||
9 | % This function is implemented in MEX (randgamma.c) | |
10 | error('You must run install_lightspeed first'); |
Note: See TracBrowser
for help on using the repository browser.