Various mathematical tools for scientific analysis. More...
#include "NcMath.h"
Various mathematical tools for scientific analysis.
Public Member Functions | |
| NcMath () | |
| NcMath (const NcMath &m) | |
| virtual | ~NcMath () |
| Double_t | BesselI (Int_t n, Double_t x) const |
| Double_t | BesselK (Int_t n, Double_t x) const |
| TF1 | BinomialCDF (Int_t n, Double_t p) const |
| TF1 | BinomialDist (Int_t n, Double_t p) const |
| Double_t | BinomialPvalue (Int_t k, Int_t n, Double_t p, Int_t sides=0, Int_t sigma=0, Int_t mode=0) const |
| TF1 | Chi2CDF (Int_t ndf) const |
| TF1 | Chi2Dist (Int_t ndf) const |
| Double_t | Chi2Pvalue (Double_t chi2, Int_t ndf, Int_t sides=0, Int_t sigma=0, Int_t mode=1) const |
| Double_t | Chi2Value (Int_t m, Double_t *n, Double_t *p=0, Int_t *ndf=0) const |
| Double_t | Chi2Value (Int_t m, Int_t *n, Double_t *p=0, Int_t *ndf=0) const |
| Double_t | Chi2Value (TH1 *his, TH1 *hyp=0, TF1 *pdf=0, Int_t *ndf=0) const |
| Double_t | Erf (Double_t x) const |
| Double_t | Erfc (Double_t x) const |
| TF1 | FratioCDF (Int_t ndf1, Int_t ndf2) const |
| TF1 | FratioDist (Int_t ndf1, Int_t ndf2) const |
| Double_t | FratioPvalue (Double_t f, Int_t ndf1, Int_t ndf2, Int_t sides=0, Int_t sigma=0) const |
| Double_t | Gamma (Double_t a, Double_t x, Int_t mode=0) const |
| Double_t | Gamma (Double_t z) const |
| TF1 | GammaDtDist (Double_t r, Double_t z) const |
| TF1 | GaussCDF (Double_t mu, Double_t sigma) const |
| TF1 | GaussDist (Double_t mu, Double_t sigma) const |
| Double_t | GaussProb (Double_t q, Double_t mean=0, Double_t sigma=1, Int_t isig=0) const |
| Double_t | GaussPvalue (Double_t q, Double_t mean=0, Double_t sigma=1, Int_t sides=2, Int_t isig=0) const |
| TGraph | GetCDF (TF1 f, Int_t npx=1000) const |
| Double_t | GetStatistic (TF1 f, TString name, Int_t n=0, Double_t vref=0, Int_t npx=1000) const |
| Double_t | LiMaSignificance (Double_t Non, Double_t Ton, Double_t Noff, Double_t Toff, Double_t Ra=1, Double_t Re=1) const |
| Double_t | LnGamma (Double_t a, Double_t x, Int_t mode=0) const |
| Double_t | LnGamma (Double_t z) const |
| Double_t | LnNfac (Int_t n, Int_t mode=2) const |
| Double_t | LnRfac (Double_t r) const |
| Double_t | Log (Double_t B, Double_t x) const |
| Double_t | LogNfac (Int_t n, Int_t mode=2) const |
| Double_t | LogRfac (Double_t r) const |
| Double_t | MeanMu (Double_t cl, Double_t nbkg, Int_t mode, TF1 *w=0, TFeldmanCousins *f=0, Int_t nmax=0) const |
| TF1 | NegBinomialnCDF (Int_t k, Double_t p) const |
| TF1 | NegBinomialnDist (Int_t k, Double_t p) const |
| Double_t | NegBinomialnPvalue (Int_t n, Int_t k, Double_t p, Int_t sides=0, Int_t sigma=0, Int_t mode=0) const |
| TF1 | NegBinomialxCDF (Int_t k, Double_t p) const |
| TF1 | NegBinomialxDist (Int_t k, Double_t p) const |
| Double_t | NegBinomialxPvalue (Int_t x, Int_t k, Double_t p, Int_t sides=0, Int_t sigma=0, Int_t mode=0) const |
| Double_t | Nfac (Int_t n, Int_t mode=0) const |
| TF1 | PoissonCDF (Double_t mu) const |
| TF1 | PoissonCDF (Double_t r, Double_t dt) const |
| TF1 | PoissonDist (Double_t mu) const |
| TF1 | PoissonDist (Double_t r, Double_t dt) const |
| TF1 | PoissonDtCDF (Double_t r, Int_t n) const |
| TF1 | PoissonDtDist (Double_t r, Int_t n) const |
| Double_t | PoissonDtPvalue (Double_t dt, Double_t r, Int_t n, Int_t sides=0, Int_t sigma=0) const |
| Double_t | PoissonPvalue (Int_t k, Double_t mu, Int_t sides=0, Int_t sigma=0) const |
| Double_t | PoissonPvalue (Int_t k, Double_t r, Double_t dt, Int_t sides=0, Int_t sigma=0) const |
| Double_t | Prob (Double_t chi2, Int_t ndf, Int_t mode=1) const |
| Double_t | PsiExtreme (Double_t n, Int_t m, Double_t *p=0, Int_t k=0) const |
| Double_t | PsiExtreme (TH1 *his, TH1 *hyp=0, TF1 *pdf=0, Int_t k=0) const |
| Double_t | PsiPvalue (Double_t psi0, Double_t nr, Double_t n, Int_t m, Double_t *p=0, Int_t f=0, Double_t *na=0, TH1F *psih=0, Int_t ncut=0, Double_t *nrx=0, Int_t mark=1) |
| Double_t | PsiPvalue (Double_t psi0, Double_t nr, TH1 *his, TH1 *hyp=0, TF1 *pdf=0, Int_t f=0, Double_t *na=0, TH1F *psih=0, Int_t ncut=0, Double_t *nrx=0, Int_t mark=1) |
| Double_t | PsiValue (Int_t m, Double_t *n, Double_t *p=0, Int_t f=0) const |
| Double_t | PsiValue (Int_t m, Int_t *n, Double_t *p=0, Int_t f=0) const |
| Double_t | PsiValue (TH1 *his, TH1 *hyp=0, TF1 *pdf=0, Int_t f=0) const |
| TF1 | Rayleigh3Dist (Double_t sigma) const |
| TF1 | RayleighCDF (Double_t sigma) const |
| TF1 | RayleighDist (Double_t sigma) const |
| Double_t | Rfac (Double_t r) const |
| TF1 | StudentCDF (Double_t ndf) const |
| TF1 | StudentDist (Double_t ndf) const |
| Double_t | StudentPvalue (Double_t t, Double_t ndf, Int_t sides=0, Int_t sigma=0) const |
| Double_t | Zeta (Double_t x, Int_t nterms=100000) const |
Protected Member Functions | |
| Double_t | BesselI0 (Double_t x) const |
| Double_t | BesselI1 (Double_t x) const |
| Double_t | BesselK0 (Double_t x) const |
| Double_t | BesselK1 (Double_t x) const |
| Double_t | GamCf (Double_t a, Double_t x) const |
| Double_t | GamSer (Double_t a, Double_t x) const |
| NcMath::NcMath | ( | ) |
Definition at line 61 of file NcMath.cxx.
|
virtual |
Definition at line 70 of file NcMath.cxx.
| NcMath::NcMath | ( | const NcMath & | m | ) |
Definition at line 79 of file NcMath.cxx.
| Double_t NcMath::BesselI | ( | Int_t | n, |
| Double_t | x ) const |
Definition at line 720 of file NcMath.cxx.
|
protected |
Definition at line 497 of file NcMath.cxx.
|
protected |
Definition at line 587 of file NcMath.cxx.
| Double_t NcMath::BesselK | ( | Int_t | n, |
| Double_t | x ) const |
Definition at line 678 of file NcMath.cxx.
|
protected |
Definition at line 540 of file NcMath.cxx.
|
protected |
Definition at line 631 of file NcMath.cxx.
| TF1 NcMath::BinomialCDF | ( | Int_t | n, |
| Double_t | p ) const |
Definition at line 992 of file NcMath.cxx.
| TF1 NcMath::BinomialDist | ( | Int_t | n, |
| Double_t | p ) const |
Definition at line 960 of file NcMath.cxx.
| Double_t NcMath::BinomialPvalue | ( | Int_t | k, |
| Int_t | n, | ||
| Double_t | p, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0, | ||
| Int_t | mode = 0 ) const |
Definition at line 2056 of file NcMath.cxx.
| TF1 NcMath::Chi2CDF | ( | Int_t | ndf | ) | const |
Definition at line 801 of file NcMath.cxx.
| TF1 NcMath::Chi2Dist | ( | Int_t | ndf | ) | const |
Definition at line 777 of file NcMath.cxx.
| Double_t NcMath::Chi2Pvalue | ( | Double_t | chi2, |
| Int_t | ndf, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0, | ||
| Int_t | mode = 1 ) const |
Definition at line 1784 of file NcMath.cxx.
| Double_t NcMath::Chi2Value | ( | Int_t | m, |
| Double_t * | n, | ||
| Double_t * | p = 0, | ||
| Int_t * | ndf = 0 ) const |
Definition at line 3924 of file NcMath.cxx.
| Double_t NcMath::Chi2Value | ( | Int_t | m, |
| Int_t * | n, | ||
| Double_t * | p = 0, | ||
| Int_t * | ndf = 0 ) const |
Definition at line 3867 of file NcMath.cxx.
| Double_t NcMath::Chi2Value | ( | TH1 * | his, |
| TH1 * | hyp = 0, | ||
| TF1 * | pdf = 0, | ||
| Int_t * | ndf = 0 ) const |
Definition at line 3986 of file NcMath.cxx.
| Double_t NcMath::Erf | ( | Double_t | x | ) | const |
Definition at line 370 of file NcMath.cxx.
| Double_t NcMath::Erfc | ( | Double_t | x | ) | const |
Definition at line 383 of file NcMath.cxx.
| TF1 NcMath::FratioCDF | ( | Int_t | ndf1, |
| Int_t | ndf2 ) const |
Definition at line 926 of file NcMath.cxx.
| TF1 NcMath::FratioDist | ( | Int_t | ndf1, |
| Int_t | ndf2 ) const |
Definition at line 889 of file NcMath.cxx.
| Double_t NcMath::FratioPvalue | ( | Double_t | f, |
| Int_t | ndf1, | ||
| Int_t | ndf2, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0 ) const |
Definition at line 1963 of file NcMath.cxx.
|
protected |
Definition at line 316 of file NcMath.cxx.
| Double_t NcMath::Gamma | ( | Double_t | a, |
| Double_t | x, | ||
| Int_t | mode = 0 ) const |
Definition at line 146 of file NcMath.cxx.
| Double_t NcMath::Gamma | ( | Double_t | z | ) | const |
Definition at line 121 of file NcMath.cxx.
| TF1 NcMath::GammaDtDist | ( | Double_t | r, |
| Double_t | z ) const |
Definition at line 1324 of file NcMath.cxx.
|
protected |
Definition at line 271 of file NcMath.cxx.
| TF1 NcMath::GaussCDF | ( | Double_t | mu, |
| Double_t | sigma ) const |
Definition at line 1387 of file NcMath.cxx.
| TF1 NcMath::GaussDist | ( | Double_t | mu, |
| Double_t | sigma ) const |
Definition at line 1357 of file NcMath.cxx.
| Double_t NcMath::GaussProb | ( | Double_t | q, |
| Double_t | mean = 0, | ||
| Double_t | sigma = 1, | ||
| Int_t | isig = 0 ) const |
Definition at line 1700 of file NcMath.cxx.
| Double_t NcMath::GaussPvalue | ( | Double_t | q, |
| Double_t | mean = 0, | ||
| Double_t | sigma = 1, | ||
| Int_t | sides = 2, | ||
| Int_t | isig = 0 ) const |
Definition at line 1732 of file NcMath.cxx.
| TGraph NcMath::GetCDF | ( | TF1 | f, |
| Int_t | npx = 1000 ) const |
Definition at line 1649 of file NcMath.cxx.
| Double_t NcMath::GetStatistic | ( | TF1 | f, |
| TString | name, | ||
| Int_t | n = 0, | ||
| Double_t | vref = 0, | ||
| Int_t | npx = 1000 ) const |
Definition at line 1541 of file NcMath.cxx.
| Double_t NcMath::LiMaSignificance | ( | Double_t | Non, |
| Double_t | Ton, | ||
| Double_t | Noff, | ||
| Double_t | Toff, | ||
| Double_t | Ra = 1, | ||
| Double_t | Re = 1 ) const |
Definition at line 4172 of file NcMath.cxx.
| Double_t NcMath::LnGamma | ( | Double_t | a, |
| Double_t | x, | ||
| Int_t | mode = 0 ) const |
Definition at line 240 of file NcMath.cxx.
| Double_t NcMath::LnGamma | ( | Double_t | z | ) | const |
Definition at line 193 of file NcMath.cxx.
| Double_t NcMath::LnNfac | ( | Int_t | n, |
| Int_t | mode = 2 ) const |
Definition at line 2688 of file NcMath.cxx.
| Double_t NcMath::LnRfac | ( | Double_t | r | ) | const |
Definition at line 2786 of file NcMath.cxx.
| Double_t NcMath::Log | ( | Double_t | B, |
| Double_t | x ) const |
Definition at line 2613 of file NcMath.cxx.
| Double_t NcMath::LogNfac | ( | Int_t | n, |
| Int_t | mode = 2 ) const |
Definition at line 2740 of file NcMath.cxx.
| Double_t NcMath::LogRfac | ( | Double_t | r | ) | const |
Definition at line 2805 of file NcMath.cxx.
| Double_t NcMath::MeanMu | ( | Double_t | cl, |
| Double_t | nbkg, | ||
| Int_t | mode, | ||
| TF1 * | w = 0, | ||
| TFeldmanCousins * | f = 0, | ||
| Int_t | nmax = 0 ) const |
Definition at line 4109 of file NcMath.cxx.
| TF1 NcMath::NegBinomialnCDF | ( | Int_t | k, |
| Double_t | p ) const |
Definition at line 1054 of file NcMath.cxx.
| TF1 NcMath::NegBinomialnDist | ( | Int_t | k, |
| Double_t | p ) const |
Definition at line 1022 of file NcMath.cxx.
| Double_t NcMath::NegBinomialnPvalue | ( | Int_t | n, |
| Int_t | k, | ||
| Double_t | p, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0, | ||
| Int_t | mode = 0 ) const |
Definition at line 2385 of file NcMath.cxx.
| TF1 NcMath::NegBinomialxCDF | ( | Int_t | k, |
| Double_t | p ) const |
Definition at line 1118 of file NcMath.cxx.
| TF1 NcMath::NegBinomialxDist | ( | Int_t | k, |
| Double_t | p ) const |
Definition at line 1084 of file NcMath.cxx.
| Double_t NcMath::NegBinomialxPvalue | ( | Int_t | x, |
| Int_t | k, | ||
| Double_t | p, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0, | ||
| Int_t | mode = 0 ) const |
Definition at line 2498 of file NcMath.cxx.
| Double_t NcMath::Nfac | ( | Int_t | n, |
| Int_t | mode = 0 ) const |
Definition at line 2631 of file NcMath.cxx.
| TF1 NcMath::PoissonCDF | ( | Double_t | mu | ) | const |
Definition at line 1177 of file NcMath.cxx.
| TF1 NcMath::PoissonCDF | ( | Double_t | r, |
| Double_t | dt ) const |
Definition at line 1232 of file NcMath.cxx.
| TF1 NcMath::PoissonDist | ( | Double_t | mu | ) | const |
Definition at line 1150 of file NcMath.cxx.
| TF1 NcMath::PoissonDist | ( | Double_t | r, |
| Double_t | dt ) const |
Definition at line 1202 of file NcMath.cxx.
| TF1 NcMath::PoissonDtCDF | ( | Double_t | r, |
| Int_t | n ) const |
Definition at line 1293 of file NcMath.cxx.
| TF1 NcMath::PoissonDtDist | ( | Double_t | r, |
| Int_t | n ) const |
Definition at line 1260 of file NcMath.cxx.
| Double_t NcMath::PoissonDtPvalue | ( | Double_t | dt, |
| Double_t | r, | ||
| Int_t | n, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0 ) const |
Definition at line 2295 of file NcMath.cxx.
| Double_t NcMath::PoissonPvalue | ( | Int_t | k, |
| Double_t | mu, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0 ) const |
Definition at line 2160 of file NcMath.cxx.
| Double_t NcMath::PoissonPvalue | ( | Int_t | k, |
| Double_t | r, | ||
| Double_t | dt, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0 ) const |
Definition at line 2244 of file NcMath.cxx.
| Double_t NcMath::Prob | ( | Double_t | chi2, |
| Int_t | ndf, | ||
| Int_t | mode = 1 ) const |
Definition at line 421 of file NcMath.cxx.
| Double_t NcMath::PsiExtreme | ( | Double_t | n, |
| Int_t | m, | ||
| Double_t * | p = 0, | ||
| Int_t | k = 0 ) const |
Definition at line 3138 of file NcMath.cxx.
| Double_t NcMath::PsiExtreme | ( | TH1 * | his, |
| TH1 * | hyp = 0, | ||
| TF1 * | pdf = 0, | ||
| Int_t | k = 0 ) const |
Definition at line 3387 of file NcMath.cxx.
| Double_t NcMath::PsiPvalue | ( | Double_t | psi0, |
| Double_t | nr, | ||
| Double_t | n, | ||
| Int_t | m, | ||
| Double_t * | p = 0, | ||
| Int_t | f = 0, | ||
| Double_t * | na = 0, | ||
| TH1F * | psih = 0, | ||
| Int_t | ncut = 0, | ||
| Double_t * | nrx = 0, | ||
| Int_t | mark = 1 ) |
Definition at line 3528 of file NcMath.cxx.
| Double_t NcMath::PsiPvalue | ( | Double_t | psi0, |
| Double_t | nr, | ||
| TH1 * | his, | ||
| TH1 * | hyp = 0, | ||
| TF1 * | pdf = 0, | ||
| Int_t | f = 0, | ||
| Double_t * | na = 0, | ||
| TH1F * | psih = 0, | ||
| Int_t | ncut = 0, | ||
| Double_t * | nrx = 0, | ||
| Int_t | mark = 1 ) |
Definition at line 3673 of file NcMath.cxx.
| Double_t NcMath::PsiValue | ( | Int_t | m, |
| Double_t * | n, | ||
| Double_t * | p = 0, | ||
| Int_t | f = 0 ) const |
Definition at line 2913 of file NcMath.cxx.
| Double_t NcMath::PsiValue | ( | Int_t | m, |
| Int_t * | n, | ||
| Double_t * | p = 0, | ||
| Int_t | f = 0 ) const |
Definition at line 2829 of file NcMath.cxx.
| Double_t NcMath::PsiValue | ( | TH1 * | his, |
| TH1 * | hyp = 0, | ||
| TF1 * | pdf = 0, | ||
| Int_t | f = 0 ) const |
Definition at line 3002 of file NcMath.cxx.
| TF1 NcMath::Rayleigh3Dist | ( | Double_t | sigma | ) | const |
Definition at line 1490 of file NcMath.cxx.
| TF1 NcMath::RayleighCDF | ( | Double_t | sigma | ) | const |
Definition at line 1468 of file NcMath.cxx.
| TF1 NcMath::RayleighDist | ( | Double_t | sigma | ) | const |
Definition at line 1415 of file NcMath.cxx.
| Double_t NcMath::Rfac | ( | Double_t | r | ) | const |
Definition at line 2764 of file NcMath.cxx.
| TF1 NcMath::StudentCDF | ( | Double_t | ndf | ) | const |
Definition at line 857 of file NcMath.cxx.
| TF1 NcMath::StudentDist | ( | Double_t | ndf | ) | const |
Definition at line 824 of file NcMath.cxx.
| Double_t NcMath::StudentPvalue | ( | Double_t | t, |
| Double_t | ndf, | ||
| Int_t | sides = 0, | ||
| Int_t | sigma = 0 ) const |
Definition at line 1875 of file NcMath.cxx.
| Double_t NcMath::Zeta | ( | Double_t | x, |
| Int_t | nterms = 100000 ) const |
Definition at line 88 of file NcMath.cxx.