2005-02-18 20:54:39 +01:00
|
|
|
function y=ff1_(x)
|
2008-01-29 14:34:02 +01:00
|
|
|
|
|
|
|
% function y=ff1_(x)
|
|
|
|
% splits the input argument x into endogenous and exogenous variables and calls the 'static' function
|
|
|
|
%
|
|
|
|
% INPUTS
|
|
|
|
% x: argument splitted between endogenous and exogenous
|
|
|
|
%
|
|
|
|
% OUTPUTS
|
|
|
|
% y: 'static' function residuals
|
|
|
|
%
|
|
|
|
% SPECIAL REQUIREMENTS
|
|
|
|
% none
|
|
|
|
%
|
|
|
|
% part of DYNARE, copyright Dynare Team (2001-2008)
|
|
|
|
% Gnu Public License.
|
|
|
|
|
2005-02-18 20:54:39 +01:00
|
|
|
global it_ M_ oo_
|
|
|
|
|
|
|
|
n1 = size(x,1) - M_.exo_nbr;
|
|
|
|
oo_.exo_simul(it_+M_.maximum_lag-M_.maximum_lag,:) = x(n1+1:end)';
|
|
|
|
fh = str2func([M_.fname '_static']);
|
2008-06-06 16:01:02 +02:00
|
|
|
y=feval(fh,x(1:n1),oo_.exo_simul, M_.params);
|
2005-02-18 20:54:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|