#include "BCMath.h"
#include "BCLog.h"
#include <math.h>
#include <limits>
#include <set>
#include <TMath.h>
#include <TF1.h>
#include <TH1D.h>
#include <Math/PdfFuncMathCore.h>
Go to the source code of this file.
Namespaces | |
namespace | 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::rms (int n, const double *a) |
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::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) |
Variables | |
static unsigned int | BCMath::nCacheFact = 10000 |
static double * | BCMath::logfact = 0 |