Jpp 21.0.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JMathSupportkit.hh File Reference

Auxiliary methods for mathematics. More...

#include <limits>
#include <cmath>
#include "JMath/JConstants.hh"
#include "JLang/JException.hh"

Go to the source code of this file.

Classes

struct  JMATH::roots_type
 Auxiliary data structure for solution of quadratic equation. More...
 

Namespaces

namespace  JMATH
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

long long int JMATH::factorial (const long long int n)
 Determine factorial.
 
long long int JMATH::factorial (const long long int n, const long long int m)
 Determine combinatorics.
 
double JMATH::gauss (const double x, const double sigma)
 Gauss function (normalised to 1 at x = 0).
 
double JMATH::gauss (const double x, const double x0, const double sigma)
 Gauss function (normalised to 1 at x = x0).
 
double JMATH::Gauss (const double x, const double sigma)
 Normalised Gauss function.
 
double JMATH::Gauss (const double x, const double x0, const double sigma)
 Normalised Gauss function.
 
double JMATH::Gamma (const double a, const double x)
 Incomplete gamma function.
 
double JMATH::legendre (const size_t n, const double x)
 Legendre polynome.
 
double JMATH::binomial (const size_t n, const size_t k)
 Binomial function.
 
double JMATH::poisson (const size_t n, const double mu)
 Poisson probability density distribution.
 
double JMATH::Poisson (const size_t n, const double mu)
 Poisson cumulative density distribution.
 
double JMATH::getP (const double stdev)
 Get single-sided Gaussian probability for given number of standard deviations.
 
size_t JMATH::getNs (const double background, const double P)
 Get minimal number of events to exceed Poisson probability given number of background events.
 
double JMATH::getFs (const double background, const double P, const double precision)
 Get minimal number of events to exceed Poisson probability given number of background events.
 
size_t JMATH::getMinimumVarianceUnbiasedEstimator (const size_t m, const size_t k)
 Get estimate of maximum number.
 
size_t JMATH::getMinimumVarianceUnbiasedEstimator (const size_t m, const size_t k, const size_t start)
 Get estimate of maximum number.
 
size_t JMATH::getBayesianMedian (const size_t m, const size_t k)
 Get estimate of maximum number.
 
size_t JMATH::getBayesianMedian (const size_t m, const size_t k, const size_t start)
 Get estimate of maximum number.
 
size_t JMATH::getBayesianMean (const size_t m, const size_t k)
 Get estimate of maximum number.
 
size_t JMATH::getBayesianMean (const size_t m, const size_t k, const size_t start)
 Get estimate of maximum number.
 
roots_type JMATH::roots (double a, double b, double c, const double precision)
 Solution to quadratic equiation $ a x^{2} + b x + c = 0$.
 

Detailed Description

Auxiliary methods for mathematics.

Author
mdejong

Definition in file JMath/JMathSupportkit.hh.