https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
14#include "LikelihoodInterface.h"
15
20{
21public:
24 virtual void initialize() override {}
25 virtual void finalize() override {}
26 virtual void execute() override;
27
28protected:
30 std::vector<Real> & _function;
31
32private:
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};
const InputParameters & parameters() const
TestLikelihood will help test new likelihood objects.
static InputParameters validParams()
virtual void initialize() override
std::vector< Real > & _function
Value of the density or mass function.
const std::vector< Real > & _model_pred
model prediction values
virtual void execute() override
Sampler & _sampler
The MCMC sampler.
std::vector< Real > & _model_pred_required
Transfer the right outputs to the file.
std::vector< const LikelihoodFunctionBase * > _likelihoods
Storage for the likelihood objects to be utilized.
virtual void finalize() override
libMesh::Parallel::Communicator & _local_comm
Communicator that was split based on samples that have rows.