17 #include "DFunction.hh"
45 DMaxwell(
const std::vector<double>& mu,
46 const std::vector<double>& sigma);
53 DMaxwell(
const std::vector<double>& mu,
69 double CDF(
const double& v)
const;
81 std::vector<TLine*>
Contour1D(
const double alpha)
const;
87 std::vector<TObject*>
Contour2D(
const double alpha)
const;
111 double Evaluate(
const std::vector<double>& v)
const;
117 double Level(
const double alpha)
const;
126 double Radial(
const double R)
const;
135 void Radii(
const double alpha,
double& r,
double& R,
double& l)
const;
152 double Norm1D(
const size_t i)
const;
Matrix< double > _J
Jacobian of variable change.
Definition: DMaxwell.hh:166
double Level(const double alpha) const
Returns the level of the alpha-contour of the distribution.
Definition: DMaxwell.cc:272
bool Initialize()
Initializes the distribution.
Definition: DMaxwell.cc:389
Matrix< double > _invcov
Inverse covariance matrix.
Definition: DMaxwell.hh:165
std::vector< double > OffsetParameters(const double C) const
Returns the parameters necessary to produce a ROOT 3D contour.
Definition: DMaxwell.cc:464
TF1 _frand
Function used to generate random 1D samples.
Definition: DMaxwell.hh:168
void Radii(const double alpha, double &r, double &R, double &l) const
Returns the radii of the alpha-contour, following an L2 symmetry.
Definition: DMaxwell.cc:326
~DMaxwell()
Destructor.
Definition: DMaxwell.cc:146
double Evaluate(const std::vector< double > &v) const
Returns the value of the distribution in v.
Definition: DMaxwell.cc:256
std::vector< double > RandomVector()
Returns a random vector sampled from the Maxwell distribution.
Definition: DMaxwell.cc:346
double ContourVolume(const double alpha) const
Volume of the smallest contour of a given p-value.
Definition: DMaxwell.cc:240
double Norm1D(const size_t i) const
Retuns the 1D normalisation for an arbitrary interval.
Definition: DMaxwell.cc:435
double _det
Determinant of the covariance matrix.
Definition: DMaxwell.hh:167
std::vector< TLine * > ContourRadial(const double alpha) const
Segment that encompass a certain p-value in radius.
Definition: DMaxwell.cc:230
std::vector< double > Parameters() const
Returns the parameters to produce a ROOT type Gaussian function.
Definition: DMaxwell.cc:448
std::vector< double > _mean
Vector mean.
Definition: DMaxwell.hh:163
DMaxwell(const size_t n=1)
Normal constructor, initilizes a normal distribution of dimension n.
Definition: DMaxwell.cc:54
double Random()
Returns a random value sampled from the Maxwell distribution.
Definition: DMaxwell.cc:339
double CDFRadial(const double &R) const
If the function has an L1, L2 or Linf symmetry, returns its CDF at radius R.
Definition: DMaxwell.cc:156
DMaxwell & operator=(const DMaxwell &df)
Equality operator.
Definition: DMaxwell.cc:132
Defines the methods associated with the the Maxwell-Bolztmann distribution in any dimension...
Definition: DMaxwell.hh:23
TF3 * Contour3D(const double alpha) const
Concentric ellipsoids that encompasses a certain p-value in 3 dimensions.
Definition: DMaxwell.cc:213
double CDF(const double &v) const
Cumulative distribution function at v.
Definition: DMaxwell.cc:148
Parent class for all the probability density functions D*.
Definition: DFunction.hh:27
double Norm() const
Returns the probability content within the defined interval.
Definition: DMaxwell.cc:280
std::vector< TLine * > Contour1D(const double alpha) const
Segments that encompass a certain p-value in 1 dimension.
Definition: DMaxwell.cc:163
std::vector< TObject * > Contour2D(const double alpha) const
Concentric ellipses that encompass a certain p-value in 2 dimensions.
Definition: DMaxwell.cc:175
Matrix< double > _cov
Covariance matrix.
Definition: DMaxwell.hh:164
double Radial(const double R) const
Return the value of the Maxwell distribution for an R following the L2 symmetry.
Definition: DMaxwell.cc:320