Estimate.h
Go to the documentation of this file.
776 throw UserError("Attempt to calculate an efficiency when the numerator is not a subset of the denominator: "
void scale(const double scalefactor) noexcept Rescale as if value and uncertainty had been different by factor scalefactor. Definition Estimate.h:201 Estimate & add(const Estimate &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimates. Definition Estimate.h:95 size_t numErrs() const noexcept The number of error sources in the error map. Definition Estimate.h:499 std::pair< double, double > relErrDownUp(const std::string &source="") const The relative signed error pair with respect to the central value. Definition Estimate.h:304 std::pair< double, double > errNegPos(std::string source="") const The signed negative and positive uncertainty component. Definition Estimate.h:268 void setErr(const double err, const std::string &source="") Set a symmetric uncertainty component. Definition Estimate.h:176 Estimate(double v, std::map< std::string, std::pair< double, double > > &errors) Constructor to set an Estimate with a pre-filled state. Definition Estimate.h:42 double relTotalErrPos(const std::string &pat_match="") const noexcept The relative positive total uncertainty on the central value. Definition Estimate.h:470 void setErr(const std::pair< double, double > &err, const std::string &source="") Set a signed uncertainty component. Definition Estimate.h:165 double totalErrNeg(const std::string &pat_match="") const noexcept The negative total uncertainty. Definition Estimate.h:418 double quadSumAvg(const std::string &pat_match="") const noexcept The unsigned average of the two quad-sum-based total uncertainty components. Definition Estimate.h:384 double quadSumMin(const std::string &pat_match="") const The minimal shift of the central value from the quad-sum-based total uncertainty components. Definition Estimate.h:402 double totalErrPos(const std::string &pat_match="") const noexcept The positive total uncertainty. Definition Estimate.h:423 std::pair< double, double > relErr(const std::string &source="") const Convenience alias for relErrDownUp. Definition Estimate.h:312 std::vector< std::string > sources() const noexcept The list of error source names. Definition Estimate.h:487 void transform(const Trf< 1 > &trf) Generalised transformations with functors. Definition Estimate.h:214 double totalErrMax(const std::string &pat_match="") const The maximal shift of the central value from the total uncertainty components. Definition Estimate.h:441 void setValue(const double value) noexcept Set the central value of this estimator. Definition Estimate.h:159 double errDown(const std::string &source="") const The signed error due to the systematic downward variation. Definition Estimate.h:283 double totalErrMin(const std::string &pat_match="") const The minimal shift of the central value from the total uncertainty components. Definition Estimate.h:447 double valueErr(const std::string &pat_match="") const The unsigned average total uncertainty. Definition Estimate.h:452 double relTotalErrNeg(const std::string &pat_match="") const noexcept The relative negative total uncertainty on the central value. Definition Estimate.h:465 double totalErrAvg(const std::string &pat_match="") const The average of the total downward/upward uncertainty shifts, which are taken to be the signed quadrat... Definition Estimate.h:429 double errPos(const std::string &source="") const The signed positive uncertainty component. Definition Estimate.h:278 double quadSumNeg(const std::string &pat_match="") const noexcept The negative component of the quad-sum-based total uncertainty components. Definition Estimate.h:374 double relErrEnv(const std::string &source="") const The relative unsigned symmetrised error from the largest component of the downwards/upwards shifts wi... Definition Estimate.h:334 void deserializeSources(const std::vector< std::string > &data) Definition Estimate.h:563 double quadSumPos(const std::string &pat_match="") const noexcept The positive component of the quad-sum-based total uncertainty components. Definition Estimate.h:379 double errAvg(const std::string &source="") const The unsigned error from an average of the downwards/upwards shifts. Definition Estimate.h:293 double relErrUp(const std::string &source="") const The relative positive error with respect to the central value. Definition Estimate.h:322 Estimate & operator=(const Estimate &toCopy) noexcept Definition Estimate.h:69 Estimate & operator-=(const Estimate &toSubtract) Definition Estimate.h:149 std::pair< double, double > totalErr(const std::string &pat_match="") const noexcept The total uncertainty. Definition Estimate.h:410 double relErrAvg(const std::string &source="") const The relative uncertainty from an average of the downward/upward shifts with respect to the central va... Definition Estimate.h:328 double errUp(const std::string &source="") const The signed error due to the systematic upward variation. Definition Estimate.h:288 double errEnv(const std::string &source="") const The unsigned symmetrised error from the largest component of the downwards/upwards shifts. Definition Estimate.h:299 double relTotalErrEnv(const std::string &pat_match="") const noexcept The unsigned symmetrised error from the largest downward/upward components of the relative total quad... Definition Estimate.h:482 double totalErrEnv(const std::string &pat_match="") const The unsigned symmetrised uncertainty from the largest of the downward/upward shifts of the quad-sum-b... Definition Estimate.h:435 void set(const double val, const std::pair< double, double > &err, const std::string source="") Set both central value and uncertainty component. Definition Estimate.h:181 std::vector< std::string > serializeSources() const noexcept Definition Estimate.h:559 void set(const double val, const double err, const std::string &source="") Set both central value and uncertainty component. Definition Estimate.h:188 void renameSource(const std::string &old_label, const std::string &new_label) Replace a source label in the error breakdown. Definition Estimate.h:219 double valMax(const std::string &source="") const The maximal shift of the central value according to systematic variation source. Definition Estimate.h:340 double quadSumMax(const std::string &pat_match="") const The maximal shift of the central value from the quad-sum-based total uncertainty components. Definition Estimate.h:396 double errNeg(const std::string &source="") const The signed negative uncertainty component. Definition Estimate.h:273 std::pair< double, double > err(const std::string &source="") const Convenience alias for errorDownUp(source) Definition Estimate.h:263 double relTotalErrAvg(const std::string &pat_match="") const noexcept The relative average of the quad-sum-based total downward/upward uncertainty components. Definition Estimate.h:476 Estimate & subtract(const Estimate &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract one Estimate from another. Definition Estimate.h:125 std::pair< double, double > quadSum(const std::string &pat_match="") const noexcept The quadrature sum of uncertainty components. Definition Estimate.h:358 double valMin(const std::string &source="") const The minimal shift of the central value according to systematic variation source. Definition Estimate.h:346 std::pair< double, double > errDownUp(const std::string &source="") const The signed absolute error on the central value. Definition Estimate.h:255 double relErrDown(const std::string &source="") const The relative negative error with respect to the central value. Definition Estimate.h:317 Estimate(const double v, const std::pair< double, double > &e, const std::string &source="") Alternative constructor to set an Estimate with value and uncertainty. Definition Estimate.h:47 bool hasSource(const std::string &key) const noexcept Returns true/false if the error map contains key. Definition Estimate.h:494 double quadSumEnv(const std::string &pat_match="") const noexcept The unsigned symmetrised uncertainty from the largest of the quad-sum-based total uncertainty compone... Definition Estimate.h:390 std::pair< double, double > relTotalErr(const std::string &pat_match="") const noexcept The relative negative/positive total uncertainty with respect to the central value. Definition Estimate.h:457 Definition Transformation.h:31 void transform(double &val, Args &&... args) const Transform value val. Definition Transformation.h:65 Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:100 BinnedDbn< DbnN, AxisT... > operator+(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Add two BinnedDbn objects. Definition BinnedDbn.h:1060 BinnedEstimate< AxisT... > operator/(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Definition BinnedDbn.h:1133 BinnedEstimate< AxisT... > efficiency(const BinnedDbn< DbnN, AxisT... > &accepted, const BinnedDbn< DbnN, AxisT... > &total) Calculate a binned efficiency ratio of two BinnedDbn objects. Definition BinnedDbn.h:1162 BinnedDbn< DbnN, AxisT... > operator-(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Subtract one BinnedDbn object from another. Definition BinnedDbn.h:1076 BinnedEstimate< AxisT... > divide(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Divide two BinnedDbn objects. Definition BinnedDbn.h:1092 Generated on Mon Oct 28 2024 13:47:23 for YODA - Yet more Objects for Data Analysis by 1.9.8 |