Public Member Functions | List of all members
test::GaussQuadExperiment Class Reference
Inheritance diagram for test::GaussQuadExperiment:
ana::IExperiment

Public Member Functions

stan::math::var LogLikelihood (osc::IOscCalcAdjustableStan *, const SystShifts &syst=SystShifts::Nominal()) const override
 
virtual double ChiSq (osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const
 
virtual void Reset () const
 
virtual void SaveTo (TDirectory *dir, const std::string &name) const
 

Detailed Description

Definition at line 55 of file test_stanfit_dummy.C.

Member Function Documentation

virtual double ana::IExperiment::ChiSq ( osc::IOscCalcAdjustable osc,
const SystShifts syst = SystShifts::Nominal() 
) const
inlinevirtualinherited
stan::math::var test::GaussQuadExperiment::LogLikelihood ( osc::IOscCalcAdjustableStan ,
const SystShifts syst = SystShifts::Nominal() 
) const
inlineoverridevirtual

Reimplemented from ana::IExperiment.

Definition at line 58 of file test_stanfit_dummy.C.

References MECModelEnuComparisons::i, test::N_POINTS, and util::sqr().

Referenced by test_stanfit_dummy().

60  {
61  stan::math::var ll = 0;
62  for (unsigned int i = 1; i <= N_POINTS; i++)
63  {
64  auto ll_contrib = stan::math::normal_lpdf(TRUE_A * util::sqr(i),
66  ll += ll_contrib;
67 // std::cout << "For a = " << syst.GetShift(&kQuadParam) << ", LL = " << ll_contrib << std::endl;
68  }
69  return ll;
70  }
double TRUE_A
var_value< double > var
Definition: StanTypedefs.h:14
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T GetShift(const ISyst *syst) const
const QuadraticParameter kQuadParam
std::size_t N_POINTS
virtual void ana::IExperiment::Reset ( ) const
inlinevirtualinherited
void ana::IExperiment::SaveTo ( TDirectory *  dir,
const std::string name 
) const
virtualinherited

Reimplemented in ana::SingleSampleExperiment, ana::MultiExperiment, ana::CountingExperiment, ana::SolarConstraints, and ana::ReactorExperiment.

Definition at line 32 of file IExperiment.cxx.

References ana::assert().

Referenced by ana::IExperiment::Reset().

33  {
34  assert(0 && "Not implemented");
35  }
assert(nhit_max >=nhit_nbins)

The documentation for this class was generated from the following file: