v4 matlab:
* added preprocessor support for inverse gamma of type 2 * added support for this distribution in prior_bounds.m and rndprior.m * other cosmetic changes git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1983 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
ccc5070b8b
commit
08c0962c83
|
@ -94,7 +94,7 @@ class ParsingDriver;
|
|||
%token HISTVAL HP_FILTER HP_NGRID
|
||||
%token INITVAL INITVAL_FILE
|
||||
%token <string_val> INT_NUMBER
|
||||
%token INV_GAMMA_PDF IRF
|
||||
%token INV_GAMMA1_PDF INV_GAMMA2_PDF IRF
|
||||
%token KALMAN_ALGO KALMAN_TOL
|
||||
%token LAPLACE LCC_COMPILER LIK_ALGO LIK_INIT LINEAR LOAD_MH_FILE LOGLINEAR LU MARKOWITZ MAX
|
||||
%token METHOD MH_DROP MH_INIT_SCALE MH_JSCALE MH_MODE MH_NBLOCKS MH_REPLIC MH_RECOVER MIN
|
||||
|
@ -897,10 +897,12 @@ prior : BETA_PDF
|
|||
{ $$ = new string("2"); }
|
||||
| NORMAL_PDF
|
||||
{ $$ = new string("3"); }
|
||||
| INV_GAMMA_PDF
|
||||
| INV_GAMMA1_PDF
|
||||
{ $$ = new string("4"); }
|
||||
| UNIFORM_PDF
|
||||
{ $$ = new string("5"); }
|
||||
| INV_GAMMA2_PDF
|
||||
{ $$ = new string("6"); }
|
||||
;
|
||||
|
||||
value : { $$ = new string("NaN"); }
|
||||
|
|
|
@ -241,9 +241,9 @@ int sigma_e = 0;
|
|||
<DYNARE_BLOCK>gamma_pdf {return token::GAMMA_PDF;}
|
||||
<DYNARE_BLOCK>beta_pdf {return token::BETA_PDF;}
|
||||
<DYNARE_BLOCK>normal_pdf {return token::NORMAL_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma_pdf {return token::INV_GAMMA_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma1_pdf {return token::INV_GAMMA_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma2_pdf {return token::INV_GAMMA_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma_pdf {return token::INV_GAMMA1_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma1_pdf {return token::INV_GAMMA1_PDF;}
|
||||
<DYNARE_BLOCK>inv_gamma2_pdf {return token::INV_GAMMA2_PDF;}
|
||||
<DYNARE_BLOCK>uniform_pdf {return token::UNIFORM_PDF;}
|
||||
|
||||
<DYNARE_BLOCK>; {return Dynare::parser::token_type (yytext[0]);}
|
||||
|
|
Loading…
Reference in New Issue