Skip to content
Snippets Groups Projects
Commit 3d2b9c7e authored by michel's avatar michel
Browse files

added short cut for standardized cummulative normal distribution

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2030 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 5c26c762
No related branches found
No related tags found
No related merge requests found
......@@ -357,6 +357,12 @@ expression : '(' expression ')'
{ $$ = driver.add_unknown_function($1); }
| NORMCDF '(' expression COMMA expression COMMA expression ')'
{ $$ = driver.add_normcdf($3,$5,$7);}
| NORMCDF '(' expression ')'
{
string *zero = new string("0");
string *one = new string("1");
$$ = driver.add_normcdf($3,driver.add_constant(zero),driver.add_constant(one));
}
;
comma_expression : expression
......@@ -503,6 +509,12 @@ hand_side : '(' hand_side ')'
{ $$ = driver.add_min($3 , $5); }
| NORMCDF '(' hand_side COMMA hand_side COMMA hand_side ')'
{ $$ = driver.add_normcdf($3,$5,$7);}
| NORMCDF '(' hand_side ')'
{
string *zero = new string("0");
string *one = new string("1");
$$ = driver.add_normcdf($3,driver.add_constant(zero),driver.add_constant(one));
}
;
pound_expression: '#' NAME EQUAL hand_side ';'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment