https://mooseframework.inl.gov
TestLikelihood.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralReporter.h"
13 #include "LikelihoodFunctionBase.h"
14 #include "LikelihoodInterface.h"
15 
20 {
21 public:
24  virtual void initialize() override {}
25  virtual void finalize() override {}
26  virtual void execute() override;
27 
28 protected:
30  std::vector<Real> & _function;
31 
32 private:
34  std::vector<const LikelihoodFunctionBase *> _likelihoods;
35 
37  const std::vector<Real> & _model_pred;
38 
40  std::vector<Real> & _model_pred_required;
41 
44 
47 };
virtual void execute() override
static InputParameters validParams()
std::vector< const LikelihoodFunctionBase * > _likelihoods
Storage for the likelihood objects to be utilized.
std::vector< Real > & _function
Value of the density or mass function.
virtual void initialize() override
TestLikelihood will help test new likelihood objects.
std::vector< Real > & _model_pred_required
Transfer the right outputs to the file.
const std::vector< Real > & _model_pred
model prediction values
const InputParameters & parameters() const
virtual void finalize() override
Sampler & _sampler
The MCMC sampler.
libMesh::Parallel::Communicator & _local_comm
Communicator that was split based on samples that have rows.
TestLikelihood(const InputParameters &parameters)