source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/randgamma.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 361 bytes
Line 
1function 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)
10error('You must run install_lightspeed first');
Note: See TracBrowser for help on using the repository browser.