Defines the methods associated with the Gaussian distribution in any dimension.
More...
|
| | DGaus (const size_t n=1) |
| | Normal constructor, initilizes a normal distribution of dimension n. More...
|
| |
| | DGaus (const double mu, const double sigma) |
| | 1D constructor, initilizes a Gaussian mean mu and RMS sigma More...
|
| |
| | DGaus (const std::vector< double > &mu, const std::vector< double > &sigma) |
| | Uncorrelated constructor, initilizes an n-Gaussian of mean mu and RMS sigma. More...
|
| |
| | DGaus (const std::vector< double > &mu, const Matrix< double > &cov) |
| | General constructor, intializes mean and the covariance matrix of the distribution. More...
|
| |
| | DGaus (const DGaus &df) |
| | Copy constructor. More...
|
| |
| DGaus & | operator= (const DGaus &df) |
| | Equality operator. More...
|
| |
| | ~DGaus () |
| | Destructor. More...
|
| |
| double | CDF (const double &v) const |
| | Cumulative distribution function at v. More...
|
| |
| double | CDFRadial (const double &R) const |
| | If the function has an L1, L2 or Linf symmetry, returns its CDF at radius R. More...
|
| |
| std::vector< TLine * > | Contour1D (const double alpha) const |
| | Segment that encompass a certain p-value in 1 dimension. More...
|
| |
| std::vector< TObject * > | Contour2D (const double alpha) const |
| | Ellipse that encompasses a certain p-value in 2 dimensions. More...
|
| |
| TF3 * | Contour3D (const double alpha) const |
| | Ellipsoid that encompasses a certain p-value in 3 dimensions. More...
|
| |
| std::vector< TLine * > | ContourRadial (const double alpha) const |
| | Segment that encompass a certain p-value in radius. More...
|
| |
| double | ContourVolume (const double alpha) const |
| | Volume of the smallest contour of a given p-value. More...
|
| |
| double | Evaluate (const std::vector< double > &v) const |
| | Returns the value of the distribution in v. More...
|
| |
| double | Level (const double alpha) const |
| | Returns the level of the alpha-contour of the distribution. More...
|
| |
| double | Norm () const |
| | Returns the probability content within the defined interval. More...
|
| |
| double | Radial (const double R) const |
| | Return the value of the Gaussian for an R following the L2 symmetry. More...
|
| |
| double | Radius (const double alpha) const |
| | Returns the radius of the alpha-contour, following an L2 symmetry. More...
|
| |
| double | Random () |
| | Returns a random value sampled from the Gaussian distribution. More...
|
| |
| std::vector< double > | RandomVector () |
| | Returns a random vector sampled from the Gaussian distribution. More...
|
| |
| | DFunction () |
| | Default constructor, initilizes everything to 0. More...
|
| |
| | DFunction (const DFunction &df) |
| | Copy constructor. More...
|
| |
| DFunction & | operator= (const DFunction &df) |
| | Equality operator. More...
|
| |
| double | operator() (const std::vector< double > &v) const |
| | Overloaded function operator, calls Evaluate. More...
|
| |
| double | operator() (const double &v) const |
| | Overloaded function operator, calls Evaluate. More...
|
| |
| double | operator() (const double *v) const |
| | Overloaded function operator, calls Evaluate. More...
|
| |
| | ~DFunction () |
| | Destructor. More...
|
| |
| size_t | Dimension () const |
| | Returns the dimension of the space. More...
|
| |
| double | Evaluate (const double &v) const |
| | Returns the value of the PDF. More...
|
| |
| double | Evaluate (const double *v) const |
| | Returns the value of the PDF. More...
|
| |
| void | SetLowerBound (const double lower, const size_t i=0) |
| | Sets the lower bound of axis i. More...
|
| |
| double | LowerBound (const size_t i=0) const |
| | Returns the lower bound of axis i. More...
|
| |
| void | SetLowerBounds (std::vector< double > lower) |
| | Sets the vector of lower bounds. More...
|
| |
| std::vector< double > | LowerBounds () const |
| | Returns the array of lower bounds. More...
|
| |
| void | SetName (const std::string &name) |
| | Returns the name of the function. More...
|
| |
| std::string | Name () const |
| | Returns the name of the function. More...
|
| |
| void | SetRange (const double lower, const double upper, const size_t i=0) |
| | Returns the upper bound of axis i. More...
|
| |
| void | SetRange (const std::vector< double > &lower, const std::vector< double > &upper) |
| | Returns the upper bound of axis i. More...
|
| |
| void | Range (std::vector< double > &lower, std::vector< double > &upper) const |
| | Returns the upper bound of axis i. More...
|
| |
| void | SetTitle (const std::string &title) |
| | Returns the name of the function. More...
|
| |
| std::string | Title () const |
| | Returns the name of the function. More...
|
| |
| void | SetUpperBound (const double upper, const size_t i=0) |
| | Sets the upper bound of axis i. More...
|
| |
| double | UpperBound (const size_t i=0) const |
| | Returns the upper bound of axis i. More...
|
| |
| void | SetUpperBounds (std::vector< double > upper) |
| | Sets the vector of upper bounds. More...
|
| |
| std::vector< double > | UpperBounds () const |
| | Returns the array of upper bounds. More...
|
| |
| TGraph * | Graph (size_t idx=0, std::vector< double > x=std::vector< double >()) const |
| | Returns a 1D graph of the function in the requested axis. More...
|
| |
| TGraph * | GraphRadial () const |
| | Returns a radial graph of the function. More...
|
| |
| TH2F * | Graph2D (size_t idx=0, size_t idy=1, std::vector< double > x=std::vector< double >()) const |
| | Returns a 2D histogram of the function in the requested axis. More...
|
| |
| TGraph * | GraphCDFRadial () const |
| | Returns a radial graph of the cummulative density function. More...
|
| |
| void | Draw (const std::string opt="", int idx=0, int idy=1, std::vector< double > x=std::vector< double >()) const |
| | Draws the function on whichever TCanvas is currently being used (ROOT) More...
|
| |
| void | DrawRadial (const std::string opt="") const |
| | Draws the radial function on whichever TCanvas is currently being used (ROOT) More...
|
| |
| void | Print (const std::string opt="", int idx=0, int idy=1, std::vector< double > x=std::vector< double >()) const |
| | Creates a canvas, draws the function on it and save it to a file. More...
|
| |
| void | PrintRadial (const std::string opt="") const |
| | Creates a canvas, draws the radial function on it and save it to a file. More...
|
| |
Defines the methods associated with the Gaussian distribution in any dimension.