header updated

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1577 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
assia 2008-01-11 15:42:27 +00:00
parent ac0ab299c1
commit 13029cf258
1 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,22 @@
function ldens = lpdfgam(x,a,b);
% log GAMMA PDF
% function ldens = lpdfbeta(x,a,b)
% log GAMMA PDF
%
% INPUTS
% x: density evatuated at x
% a: GAMMA distribution paramerer
% b: GAMMA distribution paramerer
%
% OUTPUTS
% ldens: the log GAMMA PDF
%
% SPECIAL REQUIREMENTS
% none
%
% part of DYNARE, copyright Dynare Team (2003-2008)
% Gnu Public License.
ldens = -gammaln(a) -a*log(b)+ (a-1)*log(x) -x/b ;
% 10/11/03 MJ adapted from an earlier GAUSS version by F. Schorfeide,