Skip to content
Snippets Groups Projects
Verified Commit fef466ef authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Remove unused variable.

parent 52be9d08
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ function initial_distribution = auxiliary_initialization(ReducedForm,Y,start,Par
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
persistent init_flag mf0 mf1 number_of_particles
persistent init_flag mf1 number_of_particles
persistent number_of_observed_variables number_of_structural_innovations
% Set default
......@@ -38,7 +38,6 @@ state_variables_steady_state = ReducedForm.state_variables_steady_state;
% Set persistent variables.
if isempty(init_flag)
mf0 = ReducedForm.mf0;
mf1 = ReducedForm.mf1;
number_of_observed_variables = length(mf1);
number_of_structural_innovations = length(ReducedForm.Q);
......@@ -114,4 +113,4 @@ PredictedObservedVariance = bsxfun(@times,weights,dPredictedObservedMean)*dPredi
wtilde = exp(-.5*(const_lik+log(det(PredictedObservedVariance))+sum(PredictionError.*(PredictedObservedVariance\PredictionError),1))) ;
tau_tilde = weights.*wtilde ;
tau_tilde = tau_tilde/sum(tau_tilde);
initial_distribution = resample(StateVectors',tau_tilde',ParticleOptions)' ;
\ No newline at end of file
initial_distribution = resample(StateVectors',tau_tilde',ParticleOptions)' ;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment