NAGASH 0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
NAGASH::Uncertainty Class Reference

Provide static functions for calculating uncertainties. More...

#include "NAGASH/Uncertainty.h"

Inheritance diagram for NAGASH::Uncertainty:
NAGASH::Tool

Public Member Functions

 Uncertainty (std::shared_ptr< MSGTool > MSG)
 Constructor.
 

Static Public Member Functions

static double AminusB (double A_err, double B_err)
 Calculate the uncertainty of \( A-B \).
 
static double AminusBoverAplusB (double A, double B, double A_err, double B_err)
 Calculate the uncertainty of \( (A-B)/(A+B) \).
 
static double AoverAplusB (double A, double AplusB, double A_err, double AplusB_err)
 Calculate the uncertainty of \( A/(A+B) \).
 
static double AoverB (double A, double B, double A_err, double B_err)
 Calculate the uncertainty of \( A/B \).
 
static double AplusB (double A_err, double B_err)
 Calculate the uncertainty of \( A+B \).
 

Additional Inherited Members

- Protected Member Functions inherited from NAGASH::Tool
 Tool ()=delete
 
 Tool (const Tool &tool)=delete
 
 Tool (std::shared_ptr< MSGTool > MSG)
 Constructor.
 
 Tool (Tool &&tool)=delete
 
virtual ~Tool ()=default
 
std::shared_ptr< MSGToolMSGUser ()
 return the MSGTool inside.
 
Tooloperator= (const Tool &tool)=delete
 
Tooloperator= (Tool &&tool)=delete
 

Detailed Description

Provide static functions for calculating uncertainties.

Definition at line 16 of file Uncertainty.h.

Constructor & Destructor Documentation

◆ Uncertainty()

NAGASH::Uncertainty::Uncertainty ( std::shared_ptr< MSGTool MSG)
inline

Constructor.

Parameters
MSGinput MSGTool.

Definition at line 21 of file Uncertainty.h.

Member Function Documentation

◆ AminusB()

double Uncertainty::AminusB ( double  A_err,
double  B_err 
)
static

Calculate the uncertainty of \( A-B \).

Parameters
A_erruncertainty of \( A \).
B_erruncertainty of \( B \)

Definition at line 21 of file Uncertainty.cxx.

◆ AminusBoverAplusB()

double Uncertainty::AminusBoverAplusB ( double  A,
double  B,
double  A_err,
double  B_err 
)
static

Calculate the uncertainty of \( (A-B)/(A+B) \).

Parameters
Athe value of \( A \).
Bthe value of \( B \).
A_errthe uncertainty of \( A \).
B_errthe uncertainty of \( B \).
Returns

Definition at line 61 of file Uncertainty.cxx.

◆ AoverAplusB()

double Uncertainty::AoverAplusB ( double  A,
double  AplusB,
double  A_err,
double  AplusB_err 
)
static

Calculate the uncertainty of \( A/(A+B) \).

Parameters
Athe value of \( A \).
AplusBthe value of \( A+B \).
A_errthe uncertainty of \( A \).
AplusB_errthe uncertainty of \( A+B \).

Definition at line 31 of file Uncertainty.cxx.

◆ AoverB()

double Uncertainty::AoverB ( double  A,
double  B,
double  A_err,
double  B_err 
)
static

Calculate the uncertainty of \( A/B \).

Parameters
Athe value of \( A \).
Bthe value of \( B \).
A_errthe uncertainty of \( A \).
B_errthe uncertainty of \( B \).

Definition at line 47 of file Uncertainty.cxx.

◆ AplusB()

double Uncertainty::AplusB ( double  A_err,
double  B_err 
)
static

Calculate the uncertainty of \( A+B \).

Parameters
A_erruncertainty of \( A \).
B_erruncertainty of \( B \).

Definition at line 13 of file Uncertainty.cxx.


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