#include <EvtIntervalFlatPdf.hh>
Inheritance diagram for EvtIntervalFlatPdf:
Public Member Functions | |
EvtPredGen< EvtPdfGen< EvtPoint1D >, EvtPdfPred< EvtPoint1D > > | accRejGen (const EvtPdf< EvtPoint1D > &pc, int nMax, double factor=1.) |
virtual EvtPdf< EvtPoint1D > * | clone () const |
virtual EvtValError | compute_integral (int N) const |
virtual EvtValError | compute_integral () const |
EvtValError | compute_mc_integral (const EvtPdf< EvtPoint1D > &pc, int N) |
double | evaluate (const EvtPoint1D &p) const |
EvtIntervalFlatPdf (const EvtIntervalFlatPdf &other) | |
EvtIntervalFlatPdf (double min, double max) | |
EvtValError | findGenEff (const EvtPdf< EvtPoint1D > &pc, int N, int nFindMax) |
EvtPdfMax< EvtPoint1D > | findMax (const EvtPdf< EvtPoint1D > &pc, int N) |
EvtValError | getItg (int N) const |
EvtValError | getItg () const |
virtual EvtPoint1D | randomPoint () |
void | setItg (EvtValError itg) |
virtual | ~EvtIntervalFlatPdf () |
Protected Member Functions | |
virtual double | pdf (const EvtPoint1D &) const |
Protected Attributes | |
EvtValError | _itg |
double | _max |
double | _min |
|
00017 : EvtPdf<EvtPoint1D>(), _min(min), _max(max) 00018 { 00019 assert(max >= min); 00020 }
|
|
|
|
00027 {}
|
|
|
|
Implements EvtPdf< EvtPoint1D >. 00030 { 00031 return new EvtIntervalFlatPdf(*this); 00032 }
|
|
00095 { return compute_integral(); }
|
|
Reimplemented from EvtPdf< EvtPoint1D >. 00040 { 00041 return EvtValError(_max-_min,0.); 00042 }
|
|
|
|
|
|
|
|
|
|
00087 { 00088 if(!_itg.valueKnown()) _itg = compute_integral(N); 00089 return _itg; 00090 }
|
|
00083 { 00084 if(!_itg.valueKnown()) _itg = compute_integral(); 00085 return _itg; 00086 }
|
|
Implements EvtPdf< EvtPoint1D >. 00035 {
00036 return 1.;
00037 }
|
|
Reimplemented from EvtPdf< EvtPoint1D >. 00045 { 00046 return EvtPoint1D(_min,_max,EvtRandom::Flat(_min,_max)); 00047 }
|
|
00081 {_itg = itg; }
|
|
|
|
|
|
|