BayesianAnalysisToolkit  0.9.3
Namespaces | Constant Groups | Functions | Variables
BCMath.cxx File Reference
#include "BCMath.h"
#include "BCLog.h"
#include <math.h>
#include <limits>
#include <set>
#include <TMath.h>
#include <TF1.h>
#include <TH1D.h>
#include <TRandom3.h>
#include <Math/PdfFuncMathCore.h>
#include <Math/QuantFuncMathCore.h>

Go to the source code of this file.

Namespaces

 BCMath
 Some useful mathematic functions.
 

Constant Groups

 BCMath
 Some useful mathematic functions.
 

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::LogFact (int n)
 
void BCMath::CacheFactorial (unsigned int n)
 
double BCMath::LogNoverK (int n, int k)
 
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)
 
double BCMath::SplitGaussian (double *x, double *par)
 
double BCMath::chi2 (double *x, double *par)
 
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 longestObserved, unsigned int nTrials)
 
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)
 

Variables

static unsigned int BCMath::nCacheFact = 10000
 
static double * BCMath::logfact = 0