Simple mathematical utilities not found in ROOT's TMath. More...
Functions | |
TMatrixD | CholeskyDecomposition (const TMatrixD &cov) |
TVectorD | CholeskyGenerateCorrelatedParams (const TMatrixD &Lch, TVectorD &mean) |
TVectorD | CholeskyGenerateCorrelatedParams (const TMatrixD &Lch, TVectorD &mean, TVectorD &g_uncorrelated) |
TVectorD | CholeskyGenerateCorrelatedParamVariations (const TMatrixD &Lch) |
TVectorD | CholeskyCalculateCorrelatedParamVariations (const TMatrixD &Lch, TVectorD &g_uncorrelated) |
double | KahanSummation (double x[], unsigned int n) |
double | KahanSummation (const vector< double > &x) |
bool | AreEqual (double x1, double x2) |
bool | AreEqual (float x1, float x2) |
bool | IsWithinLimits (double x, Range1D_t range) |
bool | IsWithinLimits (float x, Range1F_t range) |
bool | IsWithinLimits (int i, Range1I_t range) |
double | NonNegative (double x) |
double | NonNegative (float x) |
Simple mathematical utilities not found in ROOT's TMath.
May 06, 2004
Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE
bool genie::utils::math::AreEqual | ( | double | x1, |
double | x2 | ||
) |
Definition at line 243 of file MathUtils.cxx.
References dx, LOG, pINFO, and submit_syst::x2.
Referenced by genie::PathLengthList::AreAllZero(), caf::Proxy< T >::CheckEquals(), genie::Spline::ClosestKnotValueIsZero(), genie::AxialFormFactor::Compare(), genie::ELFormFactors::Compare(), genie::QELFormFactors::Compare(), and genie::DISStructureFunc::Compare().
bool genie::utils::math::AreEqual | ( | float | x1, |
float | x2 | ||
) |
Definition at line 254 of file MathUtils.cxx.
References dx, LOG, pINFO, and submit_syst::x2.
TVectorD genie::utils::math::CholeskyCalculateCorrelatedParamVariations | ( | const TMatrixD & | Lch, |
TVectorD & | g_uncorrelated | ||
) |
Definition at line 193 of file MathUtils.cxx.
References ana::assert(), MECModelEnuComparisons::g, ncols, and fillBadChanDBTables::nrows.
Definition at line 27 of file MathUtils.cxx.
References ana::assert(), E, epsilon, exit(), stan::math::fabs(), MECModelEnuComparisons::i, calib::j, CLHEP::L, LOG, getGoodRuns4SAM::n, ncols, fillBadChanDBTables::nrows, pERROR, pINFO, ana::Sqrt(), and tmp.
TVectorD genie::utils::math::CholeskyGenerateCorrelatedParams | ( | const TMatrixD & | Lch, |
TVectorD & | mean | ||
) |
Definition at line 83 of file MathUtils.cxx.
References exit(), MECModelEnuComparisons::g, MECModelEnuComparisons::i, LOG, getGoodRuns4SAM::n, ncols, fillBadChanDBTables::nrows, pERROR, and registry_explorer::v.
TVectorD genie::utils::math::CholeskyGenerateCorrelatedParams | ( | const TMatrixD & | Lch, |
TVectorD & | mean, | ||
TVectorD & | g_uncorrelated | ||
) |
Definition at line 126 of file MathUtils.cxx.
References exit(), MECModelEnuComparisons::i, LOG, getGoodRuns4SAM::n, ncols, fillBadChanDBTables::nrows, pERROR, and registry_explorer::v.
Definition at line 172 of file MathUtils.cxx.
References ana::assert(), MECModelEnuComparisons::g, getGoodRuns4SAM::n, ncols, and fillBadChanDBTables::nrows.
bool genie::utils::math::IsWithinLimits | ( | double | x, |
Range1D_t | range | ||
) |
Definition at line 265 of file MathUtils.cxx.
References genie::Range1D_t::max, and genie::Range1D_t::min.
Referenced by genie::utils::kinematics::ApplyCutsToKineLimits(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), genie::KPhaseSpace::IsAllowed(), and genie::utils::kinematics::PhaseSpaceVolume().
bool genie::utils::math::IsWithinLimits | ( | float | x, |
Range1F_t | range | ||
) |
Definition at line 270 of file MathUtils.cxx.
References genie::Range1F_t::max, and genie::Range1F_t::min.
Definition at line 275 of file MathUtils.cxx.
References genie::Range1I_t::max, and genie::Range1I_t::min.
double genie::utils::math::KahanSummation | ( | double | x[], |
unsigned int | n | ||
) |
Definition at line 211 of file MathUtils.cxx.
References plot_validation_datamc::c, MECModelEnuComparisons::i, getGoodRuns4SAM::n, sum, confusionMatrixTree::t, and submit_syst::y.
double genie::utils::math::KahanSummation | ( | const vector< double > & | x | ) |
Definition at line 227 of file MathUtils.cxx.
References plot_validation_datamc::c, MECModelEnuComparisons::i, sum, confusionMatrixTree::t, and submit_syst::y.
double genie::utils::math::NonNegative | ( | double | x | ) |
Definition at line 280 of file MathUtils.cxx.
Referenced by genie::PrimaryLeptonGenerator::AddToEventRecord(), genie::OutgoingDarkGenerator::AddToEventRecord(), and genie::NucBindEnergyAggregator::ProcessEventRecord().
double genie::utils::math::NonNegative | ( | float | x | ) |
Definition at line 287 of file MathUtils.cxx.