18 params.
addClassDescription(
"Generalized extreme value likelihood function evaluating the model " 19 "goodness against experiments.");
27 const std::vector<Real> &
model,
29 const bool & log_likelihood)
32 for (
unsigned i = 0; i <
exp.size(); ++i)
35 Real pdf = std::exp(-(
x + std::exp(-
x))) / noise;
36 result += std::log(pdf);
39 result = std::exp(result);
ExtremeValue(const InputParameters ¶meters)
A class used to generate a generalized extreme value likelihood of observing model predictions...
virtual Real function(const std::vector< Real > &x) const override
Return the probability density or mass function at vector x.
const Real & _noise
Noise value.
A class used to generate a Gaussian likelihood of observing model predictions.
const std::vector< double > x
static InputParameters validParams()
static InputParameters validParams()
const bool _log_likelihood
return log-likelihood or likelihood
std::vector< Real > _exp_values
Experimental data values.
const PertinentGeochemicalSystem model(database, {"H2O", "H+", "HCO3-", "O2(aq)", "Ca++", ">(s)FeOH", "radius_neg1", "radius_neg1.5"}, {"Calcite"}, {}, {"Calcite_asdf"}, {"CH4(aq)"}, {">(s)FeOCa+"}, "O2(aq)", "e-")
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("StochasticToolsApp", ExtremeValue)