Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
particles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Archives
particles
Commits
21f97c8a
Commit
21f97c8a
authored
10 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Fixed headers.
parent
f82afdf8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/auxiliary_particle_filter.m
+5
-22
5 additions, 22 deletions
src/auxiliary_particle_filter.m
src/sequential_importance_particle_filter.m
+1
-1
1 addition, 1 deletion
src/sequential_importance_particle_filter.m
with
6 additions
and
23 deletions
src/auxiliary_particle_filter.m
+
5
−
22
View file @
21f97c8a
function
[
LIK
,
lik
]
=
auxiliary_particle_filter
(
ReducedForm
,
Y
,
start
,
DynareOptions
)
function
[
LIK
,
lik
]
=
auxiliary_particle_filter
(
ReducedForm
,
Y
,
start
,
DynareOptions
)
% Evaluates the likelihood of a nonlinear model with a particle filter allowing eventually resampling.
% 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) 2011-201
3
Dynare Team
% Copyright (C) 2011-201
4
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
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (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
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
persistent
init_flag
mf0
mf1
number_of_particles
persistent
init_flag
mf0
mf1
number_of_particles
persistent
sample_size
number_of_state_variables
number_of_observed_variables
number_of_structural_innovations
persistent
sample_size
number_of_state_variables
number_of_observed_variables
number_of_structural_innovations
...
...
This diff is collapsed.
Click to expand it.
src/sequential_importance_particle_filter.m
+
1
−
1
View file @
21f97c8a
...
@@ -2,7 +2,7 @@ function [LIK,lik] = sequential_importance_particle_filter(ReducedForm,Y,start,P
...
@@ -2,7 +2,7 @@ function [LIK,lik] = sequential_importance_particle_filter(ReducedForm,Y,start,P
% Evaluates the likelihood of a nonlinear model with a particle filter (optionally with resampling).
% Evaluates the likelihood of a nonlinear model with a particle filter (optionally with resampling).
% Copyright (C) 2011-201
3
Dynare Team
% Copyright (C) 2011-201
4
Dynare Team
%
%
% This file is part of Dynare (particles module).
% This file is part of Dynare (particles module).
%
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment