https://mooseframework.inl.gov
Gaussian.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 "LikelihoodFunctionBase.h"
13 #include "ReporterInterface.h"
14 
19 {
20 public:
22 
24 
25  virtual Real function(const std::vector<Real> & x) const override;
26 
34  static Real function(const std::vector<Real> & exp,
35  const std::vector<Real> & model,
36  const Real & noise,
37  const bool & log_likelihood);
38 
39 protected:
41  const bool _log_likelihood;
42 
44  const Real & _noise;
45 
47  std::vector<Real> _exp_values;
48 };
All Likelihoods should inherit from this class.
Gaussian(const InputParameters &parameters)
Definition: Gaussian.C:33
auto exp(const T &)
const Real & _noise
Noise value.
Definition: Gaussian.h:44
A class used to generate a Gaussian likelihood of observing model predictions.
Definition: Gaussian.h:18
const std::vector< double > x
static InputParameters validParams()
Definition: Gaussian.C:17
const bool _log_likelihood
return log-likelihood or likelihood
Definition: Gaussian.h:41
std::vector< Real > _exp_values
Experimental data values.
Definition: Gaussian.h:47
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
const InputParameters & parameters() const