19 "LinearSum function evaluating the model goodness against experiments.");
27 const std::vector<Real> &
model,
30 mooseAssert(
exp.size() ==
model.size(),
"LinearSum: Vectors must be the same size.");
31 mooseAssert(noise != 0.0,
"LinearSum: Noise must not be zero.");
33 for (
unsigned int i = 0; i <
exp.size(); ++i)
36 result += diff * diff;
38 return result / (noise * noise);
registerMooseObject("StochasticToolsApp", LinearSum)
const Real & _noise
Noise value.
A class used to generate a Gaussian likelihood of observing model predictions.
A class used to generate a LinearSum function of observing model predictions.
const std::vector< double > x
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-")
LinearSum(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
static InputParameters validParams()
virtual Real function(const std::vector< Real > &x) const override
Return the probability density or mass function at vector x.