22 "function",
"function",
"Value of the density or mass function.");
23 params.
addRequiredParam<std::vector<UserObjectName>>(
"likelihoods",
"Names of likelihoods.");
26 "model_pred_required",
27 "model_pred_required",
28 "Modified value of the model output from this reporter class.");
36 _function(declareValue<
std::vector<
Real>>(
"function")),
38 _model_pred_required(declareValue<
std::vector<
Real>>(
"model_pred_required")),
39 _sampler(getSampler(
"sampler")),
40 _local_comm(_sampler.getLocalComm())
42 for (
const UserObjectName &
name :
getParam<std::vector<UserObjectName>>(
"likelihoods"))
53 for (
unsigned i = 0; i <
_function.size(); ++i)
void allgather(const T &send_data, std::vector< T, A > &recv_data) const
static InputParameters validParams()
virtual void execute() override
virtual const std::string & name() const
static InputParameters validParams()
std::vector< const LikelihoodFunctionBase * > _likelihoods
Storage for the likelihood objects to be utilized.
registerMooseObject("StochasticToolsTestApp", TestLikelihood)
const T & getParam(const std::string &name) const
std::vector< Real > & _function
Value of the density or mass function.
const ReporterMode REPORTER_MODE_DISTRIBUTED
static InputParameters validParams()
TestLikelihood will help test new likelihood objects.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Real > & _model_pred_required
Transfer the right outputs to the file.
const std::vector< Real > & _model_pred
model prediction values
LikelihoodFunctionBase * getLikelihoodFunctionByName(const UserObjectName &name) const
Lookup a LikelihoodFunction object by name and return pointer.
libMesh::Parallel::Communicator & _local_comm
Communicator that was split based on samples that have rows.
TestLikelihood(const InputParameters ¶meters)