44 mean("mean","mean",this,_mean),
45 _noRounding(noRounding),
46 _protectNegative(
false)
58 mean(
"mean",this,other.mean),
59 _noRounding(other._noRounding),
60 _protectNegative(other._protectNegative)
94 if (
fabs(expected)<1e-10 &&
fabs(observed)<1e-10) {
99 if (
fabs(observed)<1e-10) {
105 if(observed<1000000) {
111 extra=-
log(sigma_square)/2 + (diff*diff)/(2*sigma_square);
160 Double_t fracLoBin = 1-(xmin-ixmin) ;
181 if(ixmin == ixmax-1){
196 }
else if(code == 2) {
224 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
239 if (xgen<=
x.
max() && xgen>=
x.
min()) {
Double_t Floor(Double_t x)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
void generateEvent(Int_t code)
Implement internal generator using TRandom::Poisson.
double poisson_cdf(unsigned int n, double mu)
Cumulative distribution function of the Poisson distribution Lower tail of the integral of the poisso...
static Int_t isInfinite(Double_t x)
Return true if x is infinite by RooNumBer internal specification.
ClassImp(TIterator) Bool_t TIterator return false
Compare two iterator objects.
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
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...
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
ClassImp(RooPoisson) RooPoisson
Constructor.
Double_t evaluate() const
Implementation in terms of the TMath Poisson function.
Bool_t hasMax(const char *rname=0) const
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...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const
Advertise internal generator in x.
double gamma_cdf(double x, double alpha, double theta, double x0=0)
Cumulative distribution function of the gamma distribution (lower tail).
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
Double_t LnGamma(Double_t z)
Computation of ln[gamma(z)] for all z.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.
Double_t getLogVal(const RooArgSet *set=0) const
calculate and return the negative log-likelihood of the Poisson
Double_t max(const char *rname=0) const