Version of FitVarWithPrior for use with constrained FitVar_StanSupports. More...
Public Types | |
typedef std::function< typename stan::math::var(const stan::math::var &, const osc::_IOscCalcAdjustable< stan::math::var > *)> | PriorFnType |
Protected Member Functions | |
template<typename T > | |
T | Clamp (T val) const |
Private Attributes | |
const StanFitSupport< IConstrainedFitVar > * | fVar |
PriorFnType | fPriorFn |
std::string | fPriorFnName |
Version of FitVarWithPrior for use with constrained FitVar_StanSupports.
Definition at line 74 of file FitVarWithPrior.h.
typedef std::function<typename stan::math::var(const stan::math::var &, const osc::_IOscCalcAdjustable<stan::math::var> *)> ana::ConstrainedFitVarWithPrior::PriorFnType |
Definition at line 82 of file FitVarWithPrior.h.
|
inline |
Definition at line 85 of file FitVarWithPrior.h.
Definition at line 61 of file IFitVar.h.
References clamp(), ana::StanExp(), ana::StanLog(), and submit_syst::x.
Referenced by ana::FitEpsMuTau::SetValue(), ana::FitDmSq32CPT::SetValue(), ana::FitVarsProduct::SetValue(), ana::FitVarsProductMarg::SetValue(), ana::FitDmSq32ScaledCPT::SetValue(), ana::FitDmSq32CPTHierarchy::SetValue(), FitSinSqTheta23UO::SetValue(), FitSinSqTheta23LO::SetValue(), ana::FitDmSq21CPT::SetValue(), ana::FitSinSq2Theta23CPT::SetValue(), ana::FitSinSqTheta23CPT::SetValue(), ana::FitSinSq2Theta13CPT::SetValue(), ana::FitSinSq2Theta12CPT::SetValue(), FitSinSqTheta23LowerOctant::SetValue(), FitSinSqTheta23MaxMix::SetValue(), and FitSinSqTheta23UpperOctant::SetValue().
|
inlineoverridevirtual |
Implements ana::IFitVar.
Definition at line 95 of file FitVarWithPrior.h.
Referenced by demoFitContours(), demoFitSlices(), FCCorrectSlice(), FCTutorial2020(), fill_col(), goodness_of_fit(), joint_fit_2017_make_fc_slice(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_contours(), joint_fit_2019_slices(), joint_fit_future_bestfit_univ(), joint_fit_future_contour_univ(), make_fc_mass_and_oct_nersc_2018(), make_fc_mass_and_oct_nersc_2019(), make_fc_mh_nersc_2018(), make_fc_mh_nersc_2019(), make_fc_oct_nersc_2018(), make_fc_oct_nersc_2019(), make_fc_slices_nersc_2018(), make_fc_slices_nersc_2018_stats(), make_fc_slices_nersc_2019(), make_fc_surfaces_2020(), make_fc_surfaces_2020_validation(), make_fc_surfaces_nersc_2018(), make_fc_surfaces_nersc_2018_stats(), make_fc_surfaces_nersc_2019(), make_mass_and_oct_fc_input_2019(), make_starplots(), plot_joint_fit_2020_contours(), run_joint_fit_2020_bestfit(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), starPlot(), syst_table_fit(), and syst_table_fit_new().
|
inlineoverridevirtual |
Implements ana::StanFitSupport< IConstrainedFitVar >.
Definition at line 99 of file FitVarWithPrior.h.
|
inlineoverridevirtual |
Implements ana::IConstrainedFitVar.
Definition at line 124 of file FitVarWithPrior.h.
|
inlineinherited |
Definition at line 38 of file IFitVar.h.
References ana::IFitVar::fLatexName, ana::IFitVar::fShortName, and string.
Referenced by ana::FrequentistSurface::CreateHistograms(), ana::MCMCDiagnostics::GetTrace(), ana::SurfaceKrige::SurfaceKrige(), and test_fitvarsproduct().
|
inlinevirtualinherited |
Log of the prior probability density. Default implementation just does log(Prior()), but this can be overridden if there optimizations that speed up the calculation.
Definition at line 103 of file IFitVar.h.
|
inlineoverride |
Definition at line 114 of file FitVarWithPrior.h.
|
inlineoverridevirtual |
Implements ana::IConstrainedFitVar.
Definition at line 119 of file FitVarWithPrior.h.
|
overridevirtualinherited |
Override the default implementation with one that pushes back towards the center of the constrained space.
Reimplemented from ana::IFitVar.
Definition at line 8 of file IFitVar.cxx.
References hi(), ana::IConstrainedFitVar::HighLimit(), lo(), ana::IConstrainedFitVar::LowLimit(), extractScale::mean, Munits::rad, and util::sqr().
Referenced by ana::SigmaDelta::SigmaPenalty().
|
inlinevirtualinherited |
The prior probability density distribution on this variable (which can depend on others if needed). If there are optimizations that can make log(Prior()) more expensive than a direct implementation, consider implementing LogPrior() directly instead.
Definition at line 99 of file IFitVar.h.
|
inline |
Definition at line 129 of file FitVarWithPrior.h.
|
inlineoverridevirtual |
Implements ana::IFitVar.
Definition at line 104 of file FitVarWithPrior.h.
Referenced by bin_composition_pie_chart(), CVNCuts(), fill_col(), futureSig_reach_singlePOTcombo_syst(), GetCalculator(), getHists_FNEX(), SystEntry::hDm(), SystEntry::hDmDcp(), SystEntry::hSin(), SystEntry::hSinDcp(), joint_fit_2017_make_fc_slice(), joint_fit_2017_make_fc_surf(), make_fc_mh_nersc_2018(), make_fc_mh_nersc_2019(), make_fc_surfaces_2020(), make_fc_surfaces_2020_validation(), make_fc_surfaces_nersc_2018(), make_fc_surfaces_nersc_2018_stats(), make_fc_surfaces_nersc_2019(), MakeFakeData(), makeSystTable(), makeSystTable_reduced(), MakeTable(), monoprob(), PeripheralCuts(), predEventCountWithSystError(), prob_biprob_pedagogical(), ResetCalc(), SetFakeCalc(), SetHierOct(), SetSeeds(), test_nue2017Prediction(), test_nue2018_fitter(), test_numupred2017(), and test_stanfit_statsonly().
|
inlineoverridevirtual |
Implements ana::StanFitSupport< IConstrainedFitVar >.
Definition at line 108 of file FitVarWithPrior.h.
|
inlineinherited |
Definition at line 37 of file IFitVar.h.
References ana::IFitVar::fShortName.
Referenced by ana::FrequentistSurface::FillSurface(), ana::MCMCDiagnostics::GetAutocorrelations(), ana::MCMCDiagnostics::GetIdx(), MakeSurface(), plot_3flavor_withsysts(), ana::FrequentistSurface::ProgressBarTitle(), ana::MCMCSamples::SampleValue(), ana::StanFitter::transform_helper(), ana::MCMCSample::Val(), ana::MCMCSamples::VarOffset(), and ana::StanFitter::write_array().
|
private |
Definition at line 137 of file FitVarWithPrior.h.
|
private |
Definition at line 139 of file FitVarWithPrior.h.
|
private |
Definition at line 132 of file FitVarWithPrior.h.