45 mean("mean","mean",this,_mean),
46 _noRounding(noRounding),
47 _protectNegative(false)
59 mean(
"mean",this,other.mean),
60 _noRounding(other._noRounding),
61 _protectNegative(other._protectNegative)
95 if (
fabs(expected)<1
e-10 &&
fabs(observed)<1
e-10) {
100 if (
fabs(observed)<1
e-10) {
106 if(observed<1000000) {
112 extra=-
log(sigma_square)/2 + (diff*diff)/(2*sigma_square);
161 Double_t fracLoBin = 1-(xmin-ixmin) ;
182 if(ixmin == ixmax-1){
197 }
else if(code == 2) {
225 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
240 if (xgen<=
x.
max() && xgen>=
x.
min()) {
static long int sum(long int i)
Double_t Floor(Double_t x)
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
void generateEvent(Int_t code)
Implement internal generator using TRandom::Poisson.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
double poisson_cdf(unsigned int n, double mu)
Cumulative distribution function of the Poisson distribution Lower tail of the integral of the poisso...
virtual Double_t getLogVal(const RooArgSet *set=0) const
Return the log of the current value with given normalization An error message is printed if the argum...
static Int_t isInfinite(Double_t x)
Return true if x is infinite by RooNumBer internal specification.
Double_t getLogVal(const RooArgSet *set=0) const
calculate and return the negative log-likelihood of the Poisson
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
Double_t evaluate() const
Implementation in terms of the TMath Poisson function.
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
Double_t Poisson(Double_t x, Double_t par)
Compute the Poisson distribution function for (x,par) The Poisson PDF is implemented by means of Eule...
Double_t min(const char *rname=0) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
double gamma_cdf(double x, double alpha, double theta, double x0=0)
Cumulative distribution function of the gamma distribution (lower tail).
Double_t max(const char *rname=0) const
Bool_t hasMax(const char *rname=0) const
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const
Advertise internal generator in x.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t LnGamma(Double_t z)
Computation of ln[gamma(z)] for all z.
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.