29 virtual void execute()
override;
54 virtual void nextSamples(std::vector<Real> & req_inputs,
56 const std::vector<Real> & tv,
57 const unsigned int & parallel_index);
102 const std::vector<const Distribution *>
_priors;
dof_id_type _num_confg_values
Storage for the number of experimental configuration values.
PMCMCDecision will help making sample accept/reject decisions in MCMC schemes (for e...
virtual void computeEvidence(std::vector< Real > &evidence, const DenseMatrix< Real > &input_matrix)
Compute the evidence (aka, betterness of the proposed sample vs the previous)
Real & _noise
Model noise term to pass to Likelihoods object.
virtual void finalize() override
dof_id_type _num_confg_params
Storage for the number of experimental configuration parameters.
virtual void execute() override
const std::vector< Real > & _output_value
Model output value from SubApp.
std::vector< Real > & _variance
Model variance term.
int _check_step
Ensure that the MCMC algorithm proceeds in a sequential fashion.
libMesh::Parallel::Communicator & _local_comm
Communicator that was split based on samples that have rows.
PMCMCDecision(const InputParameters ¶meters)
DenseMatrix< Real > _data_prev
Storage for previous inputs.
std::vector< Real > _var_prev
Storage for previous variances.
const PMCMCBase *const _pmcmc
MCMC sampler base.
virtual void computeTransitionVector(std::vector< Real > &tv, const std::vector< Real > &evidence)
Compute the transition probability vector (after the computation of evidence)
virtual void nextSeeds()
Compute the next set of seeds to facilitate proposals.
const Distribution * _var_prior
Storage for the prior over the variance.
const std::vector< const Distribution * > _priors
Storage for the priors.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
dof_id_type _props
Storage for the number of parallel proposals.
virtual void nextSamples(std::vector< Real > &req_inputs, DenseMatrix< Real > &input_matrix, const std::vector< Real > &tv, const unsigned int ¶llel_index)
Resample inputs given the transition vector (after transition vector computed)
static InputParameters validParams()
const InputParameters & parameters() const
std::vector< const LikelihoodFunctionBase * > _likelihoods
Storage for the likelihood objects to be utilized.
std::vector< Real > _outputs_prev
Storage for previous outputs.
Sampler & _sampler
The MCMC sampler.
const std::vector< Real > & _new_var_samples
Storage for new proposed variance samples.
const std::vector< Real > & _rnd_vec
Storage for the random numbers for decision making.
std::vector< Real > & _outputs_required
Transfer the right outputs to the file.
std::vector< Real > & _tpm
Transition probability matrix.
std::vector< std::vector< Real > > & _inputs
Model input data that is uncertain.
virtual void initialize() override
A base class used to perform Parallel Markov Chain Monte Carlo (MCMC) sampling.