CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
poisson Class Reference

Public Member Functions

 poisson (double mu)
 
double operator() (int r)
 

Detailed Description

Definition at line 449 of file testRandDists.cc.

Constructor & Destructor Documentation

◆ poisson()

poisson::poisson ( double  mu)
inline

Definition at line 452 of file testRandDists.cc.

452: mu_(mu) {}

Member Function Documentation

◆ operator()()

double poisson::operator() ( int  r)
inline

Definition at line 453 of file testRandDists.cc.

453 {
454 double logAnswer = -mu_ + r*std::log(mu_) - gammln(r+1);
455 return std::exp(logAnswer);
456 }
double gammln(double xx)
Definition: RandPoisson.cc:58

The documentation for this class was generated from the following file: