1 #ifndef DEXPONENTIAL_HH
2 #define DEXPONENTIAL_HH
10 #include "TPolyLine.h"
14 #include "DFunction.hh"
40 const std::vector<double>& lambda);
55 double CDF(
const double& v)
const;
67 std::vector<TLine*>
Contour1D(
const double alpha)
const;
73 std::vector<TObject*>
Contour2D(
const double alpha)
const;
97 double Evaluate(
const std::vector<double>& v)
const;
103 double Level(
const double alpha)
const;
112 double Radial(
const double R)
const;
118 double Radius(
const double alpha)
const;
135 double Norm1D(
const size_t i)
const;
std::vector< double > _lambda
Vector of scale factors.
Definition: DExponential.hh:144
double Random()
Returns a random value sampled from the exponential distribution.
Definition: DExponential.cc:196
double Radial(const double R) const
Return the value of the Exponential for an R following the L1 symmetry.
Definition: DExponential.cc:176
double ContourVolume(const double alpha) const
Volume of the smallest contour of a given p-value.
Definition: DExponential.cc:139
double Norm1D(const size_t i) const
Retuns the 1D normalisation for an arbitrary interval.
Definition: DExponential.cc:253
double Radius(const double alpha) const
Returns the radius of the alpha-contour, following an L1 symmetry.
Definition: DExponential.cc:182
std::vector< double > _mean
Vector mean.
Definition: DExponential.hh:143
std::vector< double > RandomVector()
Returns a random vector sampled from the exponential distribution.
Definition: DExponential.cc:203
Set of functions that compose the Statistics package.
double Evaluate(const std::vector< double > &v) const
Returns the value of the distribution in v.
Definition: DExponential.cc:146
DExponential & operator=(const DExponential &df)
Equality operator.
Definition: DExponential.cc:61
std::vector< double > OffsetParameters(const double C) const
Returns the parameters necessary to produce a ROOT 3D contour.
Definition: DExponential.cc:266
DExponential(const size_t n=1)
Basic constructor, initilizes an exponential distribution of dimension n.
Definition: DExponential.cc:19
std::vector< TLine * > ContourRadial(const double alpha) const
Segment that encompass a certain p-value in radius.
Definition: DExponential.cc:129
std::vector< TObject * > Contour2D(const double alpha) const
Rhombus that encompasses a certain p-value in 2 dimensions.
Definition: DExponential.cc:100
double CDFRadial(const double &R) const
If the function has an L1, L2 or Linf symmetry, returns its CDF at radius R.
Definition: DExponential.cc:83
Defines the methods associated with the exponential distribution in any dimension.
Definition: DExponential.hh:18
TF3 * Contour3D(const double alpha) const
n-Rhombus that encompasses a certain p-value in 3 dimensions
Definition: DExponential.cc:112
double Norm() const
Returns the probability content within the defined interval.
Definition: DExponential.cc:166
double _prod
Product of the scale factors.
Definition: DExponential.hh:145
Parent class for all the probability density functions D*.
Definition: DFunction.hh:27
double CDF(const double &v) const
Cumulative distribution function at v.
Definition: DExponential.cc:74
double Level(const double alpha) const
Returns the level of the alpha-contour of the distribution.
Definition: DExponential.cc:159
bool Initialize()
Initializes the distribution.
Definition: DExponential.cc:218
std::vector< TLine * > Contour1D(const double alpha) const
Segment that encompass a certain p-value in 1 dimension.
Definition: DExponential.cc:90
~DExponential()
Destructor.
Definition: DExponential.cc:72