From a9d66812669e006acb78eb344a93d4f1801bc953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 12 Dec 2014 22:38:59 +0100 Subject: [PATCH] Fixed header. --- .../src/auxiliary_initialization.m | 29 ++++--------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/nonlinear-filters/src/auxiliary_initialization.m b/nonlinear-filters/src/auxiliary_initialization.m index 5d4bde948..7034882b7 100644 --- a/nonlinear-filters/src/auxiliary_initialization.m +++ b/nonlinear-filters/src/auxiliary_initialization.m @@ -1,41 +1,24 @@ function initial_distribution = auxiliary_initialization(ReducedForm,Y,start,ParticleOptions,ThreadsOptions) -% Evaluates the likelihood of a nonlinear model with a particle filter allowing eventually resampling. -% -% INPUTS -% ReducedForm [structure] Matlab's structure describing the reduced form model. -% ReducedForm.measurement.H [double] (pp x pp) variance matrix of measurement errors. -% ReducedForm.state.Q [double] (qq x qq) variance matrix of state errors. -% ReducedForm.state.dr [structure] output of resol.m. -% Y [double] pp*smpl matrix of (detrended) data, where pp is the maximum number of observed variables. -% start [integer] scalar, likelihood evaluation starts at 'start'. -% mf [integer] pp*1 vector of indices. -% number_of_particles [integer] scalar. -% -% OUTPUTS -% LIK [double] scalar, likelihood -% lik [double] vector, density of observations in each period. -% -% REFERENCES -% -% NOTES -% The vector "lik" is used to evaluate the jacobian of the likelihood. -% Copyright (C) 2013 Dynare Team +% Evaluates the likelihood of a nonlinear model with a particle filter allowing eventually resampling. + +% Copyright (C) 2011-2014 Dynare Team % -% This file is part of Dynare. +% This file is part of Dynare (particles module). % % Dynare is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % -% Dynare is distributed in the hope that it will be useful, +% Dynare particles module is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . + persistent init_flag mf0 mf1 number_of_particles persistent number_of_observed_variables number_of_structural_innovations