65 lambda("lambda","lambda",this,_lambda),
68 fHasIssuedConvWarning(false),
69 fHasIssuedSumWarning(false)
71 #ifdef R__HAS_MATHMORE 73 "MathMore Available, will use Bessel function expressions unless SetForceSum(true) "<< endl ;
84 lambda(
"lambda",this,other.lambda),
85 fErrorTol(other.fErrorTol),
86 fMaxIters(other.fMaxIters),
87 fHasIssuedConvWarning(false),
88 fHasIssuedSumWarning(false)
90 #ifdef R__HAS_MATHMORE 92 "MathMore Available, will use Bessel function expressions unless SetForceSum(true) "<< endl ;
102 #ifndef R__HAS_MATHMORE 105 "MathMore is not available- ForceSum must be on "<< endl ;
127 _x = xmin + 1e-3*(xmax-
xmin);
154 for(
int i = iDominant; ; ++i){
158 if(ithTerm/sum < errorTol)
161 if( i>iDominant+MaxIters){
164 coutW(
Eval) <<
"RooNonCentralChiSquare did not converge: for x=" <<
x <<
" k="<<
k 165 <<
", lambda="<<
lambda <<
" fractional error = " << ithTerm/sum
166 <<
"\n either adjust tolerance with SetErrorTolerance(tol) or max_iter with SetMaxIter(max_it)" 173 for(
int i = iDominant - 1; i >= 0; --i){
185 #ifdef R__HAS_MATHMORE 188 coutF(
Eval) <<
"RooNonCentralChisquare: ForceSum must be set" << endl;
234 for(
int i = iDominant; ; ++i){
240 if(ithTerm/sum < errorTol)
243 if( i>iDominant+MaxIters){
246 coutW(
Eval) <<
"RooNonCentralChiSquare Normalization did not converge: for k="<<
k 247 <<
", lambda="<<
lambda <<
" fractional error = " << ithTerm/sum
248 <<
"\n either adjust tolerance with SetErrorTolerance(tol) or max_iter with SetMaxIter(max_it)" 255 for(
int i = iDominant - 1; i >= 0; --i){
Bool_t fHasIssuedConvWarning
virtual const char * GetName() const
Returns name of object.
Double_t Floor(Double_t x)
double chisquared_pdf(double x, double r, double x0=0)
Probability density function of the distribution with degrees of freedom.
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t Gamma(Double_t z)
Computation of gamma(z) for all z.
Bool_t fHasIssuedSumWarning
double pow(double, double)
Double_t evaluate() const
double noncentral_chisquared_pdf(double x, double r, double lambda)
Probability density function of the non central distribution with degrees of freedom and the noon-c...
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...
void SetForceSum(Bool_t flag)
Double_t max(const char *rname=0) const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
double chisquared_cdf(double x, double r, double x0=0)
Cumulative distribution function of the distribution with degrees of freedom (lower tail)...