BayesianAnalysisToolkit  0.9.3
Namespaces | Constant Groups | Macros | Functions
BCMath.h File Reference
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Namespaces

 BCMath
 Some useful mathematic functions.
 

Constant Groups

 BCMath
 Some useful mathematic functions.
 

Macros

#define BCMATH_NFACT_ALIMIT   20
 

Functions

double BCMath::LogGaus (double x, double mean=0, double sigma=1, bool norm=false)
 
double BCMath::LogPoisson (double x, double par)
 
double BCMath::ApproxBinomial (int n, int k, double p)
 
double BCMath::LogApproxBinomial (int n, int k, double p)
 
double BCMath::LogBinomFactor (int n, int k)
 
double BCMath::ApproxLogFact (double x)
 
double BCMath::LogNoverK (int n, int k)
 
double BCMath::LogFact (int n)
 
int BCMath::Nint (double x)
 
double BCMath::LogBreitWignerNonRel (double x, double mean, double Gamma, bool norm=false)
 
double BCMath::LogBreitWignerRel (double x, double mean, double Gamma)
 
double BCMath::LogChi2 (double x, int n)
 
double BCMath::LogVoigtian (double x, double sigma, double gamma)
 
double BCMath::LogGammaPDF (double x, double alpha, double beta)
 
double BCMath::LogLogNormal (double x, double mean=0, double sigma=1)
 
void BCMath::RandomChi2 (std::vector< double > &randoms, int K)
 
TH1D * BCMath::ECDF (const std::vector< double > &data)
 
std::vector< int > BCMath::longestRuns (const std::vector< bool > &bitStream)
 
std::vector< double > BCMath::longestRunsChi2 (const std::vector< double > &yMeasured, const std::vector< double > &yExpected, const std::vector< double > &sigma)
 
double BCMath::longestRunFrequency (unsigned int longestObserved, unsigned int nTrials)
 
double BCMath::SplitGaussian (double *x, double *par)
 
void BCMath::CacheFactorial (unsigned int n)
 
double BCMath::Rvalue (const std::vector< double > &chain_means, const std::vector< double > &chain_variances, const unsigned &chain_length, const bool &strict=true) throw (std::invalid_argument, std::domain_error)
 
p value methods
double BCMath::CorrectPValue (const double &pvalue, const unsigned &npar, const unsigned &nobservations) throw (std::domain_error)
 
double BCMath::FastPValue (const std::vector< unsigned > &observed, const std::vector< double > &expected, unsigned nIterations=1e5, unsigned seed=0) throw (std::invalid_argument)
 

Macro Definition Documentation

#define BCMATH_NFACT_ALIMIT   20

Definition at line 27 of file BCMath.h.