52 _x(
"x",
"Dependent", this, x),
53 _coefList(
"coefficients",
"List of coefficients",this)
58 if (!dynamic_cast<RooAbsReal*>(coef)) {
59 cout <<
"RooBernstein::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->
GetName()
60 <<
" is not of type RooAbsReal" << endl ;
72 _x(
"x", this, other.
_x),
90 }
else if(degree == 1) {
96 }
else if(degree == 2) {
101 return (a2 * x + a1) * x + a0;
103 }
else if(degree > 2) {
127 if (rangeName && strlen(rangeName)) {
146 for (
int i=0; i<=
degree; ++i){
151 for (
int j=i; j<=
degree; ++j){
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t getVal(const RooArgSet *set=0) const
Bernstein basis polynomials are positive-definite in the range [0,1].
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
Iterator abstract base class.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
double pow(double, double)
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
Double_t evaluate() const
Double_t Binomial(Int_t n, Int_t k)
Calculate the binomial coefficient n over k.
static constexpr double degree
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...
RooFIter fwdIterator() const
static constexpr double s
Double_t max(const char *rname=0) const
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual TObject * Next()=0
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...