Skip to content
Snippets Groups Projects
Commit 31e853bb authored by Frédéric Karamé's avatar Frédéric Karamé
Browse files

Add the option of Monte Carlo nonlinear Kalman filter.

(cherry picked from commit 28f7c762)
parent b63e4e7e
Branches
Tags
No related merge requests found
...@@ -89,7 +89,11 @@ end ...@@ -89,7 +89,11 @@ end
% compute gaussian quadrature nodes and weights on states and shocks % compute gaussian quadrature nodes and weights on states and shocks
if ParticleOptions.proposal_approximation.cubature || ParticleOptions.proposal_approximation.montecarlo if ParticleOptions.proposal_approximation.montecarlo
nodes = randn(ParticleOptions.number_of_particles,number_of_state_variables+number_of_structural_innovations) ;
weights = 1/ParticleOptions.number_of_particles ;
weights_c = weights ;
elseif ParticleOptions.proposal_approximation.cubature
[nodes,weights] = spherical_radial_sigma_points(number_of_state_variables+number_of_structural_innovations) ; [nodes,weights] = spherical_radial_sigma_points(number_of_state_variables+number_of_structural_innovations) ;
weights_c = weights ; weights_c = weights ;
elseif ParticleOptions.proposal_approximation.unscented elseif ParticleOptions.proposal_approximation.unscented
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment