Skip to content
Snippets Groups Projects

smc_samplers_initialization.m: clean up header

Merged Johannes Pfeifer requested to merge JohannesPfeifer/dynare:smc into master
1 file
+ 10
18
Compare changes
  • Side-by-side
  • Inline
function [particles, tlogpostkernel, loglikelihood, SimulationFolder] = smc_samplers_initialization(funobj, sampler, n, Prior, SimulationFolder, nsteps)
function [particles, tlogpostkernel, loglikelihood] = smc_samplers_initialization(funobj, sampler, n, Prior, SimulationFolder, nsteps)
% function [particles, tlogpostkernel, loglikelihood] = smc_samplers_initialization(funobj, sampler, n, Prior, SimulationFolder, nsteps)
% Initialize SMC samplers by drawing initial particles in the prior distribution.
% Initialize SMC samplers by drawing initial particles in the prior distribution.
%
%
% INPUTS
% INPUTS
% - TargetFun [char] string specifying the name of the objective function (posterior kernel).
% - funobj [char] string specifying the name of the objective function (posterior kernel).
% - sampler [char] name of the sampler.
% - sampler [char] name of the sampler.
% - n [integer] scalar, number of particles.
% - n [integer] scalar, number of particles.
% - mh_bounds [double] p×2 matrix defining lower and upper bounds for the estimated parameters.
% - Prior [class] prior information
% - dataset_ [dseries] sample
% - SimulationFolder [char] name of output folder
% - dataset_info [struct] informations about the dataset
% - nsteps [integer] number of steps
% - options_ [struct] dynare's options
% - M_ [struct] model description
% - estim_params_ [struct] estimated parameters
% - bayestopt_ [struct] estimated parameters
% - oo_ [struct] outputs
%
%
% OUTPUTS
% OUTPUTS
% - ix2 [double] p×n matrix of particles
% - particles [double] p×n matrix of particles
% - ilogpo2 [double] n×1 vector of posterior kernel values for the particles
% - tlogpostkernel [double] n×1 vector of posterior kernel values for the particles
% - iloglik2 [double] n×1 vector of likelihood values for the particles
% - loglikelihood [double] n×1 vector of likelihood values for the particles
% - ModelName [string] name of the mod-file
% - MetropolisFolder [string] path to the Metropolis subfolder
% - bayestopt_ [structure] estimation options structure
%
%
% SPECIAL REQUIREMENTS
% SPECIAL REQUIREMENTS
% None.
% None.
% Copyright © 2022-2023 Dynare Team
% Copyright © 2022-2024 Dynare Team
%
%
% This file is part of Dynare.
% This file is part of Dynare.
%
%
Loading