Namespaces | Defines | Functions

BCMath.h File Reference

#include <stdexcept>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  BCMath
 

Some useful mathematic functions.


Defines

#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::Max (int x, int y)
int BCMath::Max (unsigned int x, unsigned int y)
double BCMath::Max (double x, double y)
double BCMath::Max (float x, float y)
int BCMath::Min (int x, int y)
int BCMath::Min (unsigned int x, unsigned int y)
double BCMath::Min (double x, double y)
double BCMath::Min (float x, float y)
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)
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)

Define Documentation

#define BCMATH_NFACT_ALIMIT   20

Copyright (C) 2008-2012, Daniel Kollar and Kevin Kroeninger. All rights reserved.

For the licensing terms see doc/COPYING.

Definition at line 26 of file BCMath.h.