#include <TabulatedPDF.h>
Public Types | |
| typedef std::vector< double > | Array |
Public Member Functions | |
| void | Clear () |
| double | Density (double x) const |
| double | GetX (unsigned int idx) const |
| const double & | GetY (unsigned int idx) const |
| double & | GetY (unsigned int idx) |
| const double & | GetYSum (unsigned int idx) const |
| double & | GetYSum (unsigned int idx) |
| double | Integral (double xmin=-DBL_MAX, double xmax=DBL_MAX) const |
| double | Median () const |
| double | Moment (unsigned short order, double xmin=-DBL_MAX, double xmax=DBL_MAX) const |
| void | Normalise () |
| TabulatedPDF & | operator= (const TabulatedPDF &src) |
| void | PushBack (double y) |
| double | Quantile (double psum) const |
| void | SetScale (double xmin, double xstep) |
| unsigned int | Size () const |
| TabulatedPDF () | |
| TabulatedPDF (const TabulatedPDF &src) | |
| TabulatedPDF (double xmin, double xstep, const std::vector< double > &yValues) | |
| double | Variance (double xmin=-DBL_MAX, double xmax=DBL_MAX) const |
| virtual | ~TabulatedPDF () |
Protected Member Functions | |
| void | FillTable (double xmin, double dx, const Array &yValues) |
Protected Attributes | |
| double | fXMin |
| double | fXStep |
| Array | fY |
| Array | fYSum |
Definition at line 9 of file TabulatedPDF.h.
| typedef std::vector<double> tls::TabulatedPDF::Array |
Definition at line 11 of file TabulatedPDF.h.
| TabulatedPDF::TabulatedPDF | ( | ) |
Definition at line 17 of file TabulatedPDF.cc.
| TabulatedPDF::TabulatedPDF | ( | const TabulatedPDF & | src | ) |
Definition at line 21 of file TabulatedPDF.cc.
| TabulatedPDF::TabulatedPDF | ( | double | xmin, |
| double | xstep, | ||
| const std::vector< double > & | yValues | ||
| ) |
Definition at line 24 of file TabulatedPDF.cc.
|
inlinevirtual |
Definition at line 16 of file TabulatedPDF.h.
| void TabulatedPDF::Clear | ( | ) |
Definition at line 77 of file TabulatedPDF.cc.
| double TabulatedPDF::Density | ( | double | x | ) | const |
return the differential probability dp/dx values beyond table are return as zero
Definition at line 101 of file TabulatedPDF.cc.
Referenced by AachenTable::PDF().
|
protected |
Definition at line 41 of file TabulatedPDF.cc.
|
inline |
Definition at line 38 of file TabulatedPDF.h.
|
inline |
Definition at line 41 of file TabulatedPDF.h.
References fY.
|
inline |
Definition at line 42 of file TabulatedPDF.h.
References fY.
|
inline |
Definition at line 45 of file TabulatedPDF.h.
References fYSum.
|
inline |
Definition at line 46 of file TabulatedPDF.h.
References fYSum.
| double TabulatedPDF::Integral | ( | double | xmin = -DBL_MAX, |
| double | xmax = DBL_MAX |
||
| ) | const |
return the integrated probability p(xmin<x<xmax) values below table are zero, values above are one
Definition at line 133 of file TabulatedPDF.cc.
Referenced by AachenTable::CDF().
|
inline |
Definition at line 33 of file TabulatedPDF.h.
References Quantile().
Referenced by AachenTable::OpenFile().
| double TabulatedPDF::Moment | ( | unsigned short | order, |
| double | xmin = -DBL_MAX, |
||
| double | xmax = DBL_MAX |
||
| ) | const |
Definition at line 170 of file TabulatedPDF.cc.
References std::pow().
Referenced by AachenTable::Moment(), and AachenTable::OpenFile().
| void TabulatedPDF::Normalise | ( | ) |
Definition at line 86 of file TabulatedPDF.cc.
Referenced by AachenTable::OpenFile().
| TabulatedPDF & TabulatedPDF::operator= | ( | const TabulatedPDF & | src | ) |
| void TabulatedPDF::PushBack | ( | double | y | ) |
Definition at line 55 of file TabulatedPDF.cc.
References ERROR.
Referenced by AachenTable::OpenFile().
| double TabulatedPDF::Quantile | ( | double | psum | ) | const |
Definition at line 276 of file TabulatedPDF.cc.
Referenced by Median(), and AachenTable::OpenFile().
|
inline |
Definition at line 20 of file TabulatedPDF.h.
Referenced by AachenTable::OpenFile().
|
inline |
Definition at line 35 of file TabulatedPDF.h.
References fY.
| double TabulatedPDF::Variance | ( | double | xmin = -DBL_MAX, |
| double | xmax = DBL_MAX |
||
| ) | const |
Definition at line 221 of file TabulatedPDF.cc.
References std::pow().
Referenced by AachenTable::OpenFile().
|
protected |
Definition at line 51 of file TabulatedPDF.h.
Referenced by GetX(), operator=(), and SetScale().
|
protected |
Definition at line 52 of file TabulatedPDF.h.
Referenced by GetX(), operator=(), and SetScale().
|
protected |
Definition at line 53 of file TabulatedPDF.h.
Referenced by GetY(), operator=(), and Size().
|
protected |
Definition at line 54 of file TabulatedPDF.h.
Referenced by GetYSum(), and operator=().