XeDist Class Reference

Inheritance diagram for XeDist:
XeStat XeMath XeObject XeCore XeCore Chi2Dist ExponentialDist GaussianDist PoissonDist TabulatedDist UniformDist

List of all members.

Public Member Functions

double cdf (double x1, double x2)
 computes integrated probability density function between bounds
virtual double cdf (double x)=0
 returns cumulated probability density function
virtual double generate ()=0
 generates a pseudo random variable according to the distribution
vector< double > generateVector (int n)
 generates a vector of pseudo random variables according to the distribution
virtual double logPdf (double x)
 returns logs of probability density function
virtual double pdf (double x)=0
 returns probability density function
 XeDist (string n)
 Basic constructor.

Static Public Member Functions

static double findQuantile (TH1 *h, double q)
 Return quantile of an histogram.
static double findSigma (TH1 *h, double sigma)
 Return value for n sigmas above/below in a histogram.
static string getTheName (string nam)
 Return the corrected name.
static void normalize (TGraph *graph, double toWhat=1.)
 Normalize TGraph the way I like.
static void normalize (TH1F *h, double toWhat=1.)
 Normalize histograms the way I like.
static double rndm ()
 Wraper to random generator.

Static Protected Attributes

static TRandom3 random

Member Function Documentation

double XeDist::cdf ( double  x1,
double  x2 
)

computes integrated probability density function between bounds

Returns:
Integrated pdf inside interval
Parameters:
x1 Lower bound of integration
x2 Upper bound of integration
virtual double XeDist::cdf ( double  x  )  [pure virtual]

returns cumulated probability density function

Returns:
Cumulated probability density function
Parameters:
x Point at which is it evaluated

Implemented in TabulatedDist, UniformDist, ExponentialDist, Chi2Dist, GaussianDist, and PoissonDist.

static double XeDist::findQuantile ( TH1 *  h,
double  q 
) [static]

Return quantile of an histogram.

Returns:
value of the smallest values for a given fraction
Parameters:
histogram to be considered
q quantile (fraction of distribution considered)
static double XeDist::findSigma ( TH1 *  h,
double  sigma 
) [static]

Return value for n sigmas above/below in a histogram.

Returns:
value of the smallest values for a given fraction
Parameters:
histogram to be considered
sigma quantile expressed in +/- n sigmas (e.g - 0> .5, +1 -> 0.68)
virtual double XeDist::generate (  )  [pure virtual]

generates a pseudo random variable according to the distribution

Returns:
A pseudo random variable generated according to the distribution

Implemented in TabulatedDist, UniformDist, ExponentialDist, Chi2Dist, GaussianDist, and PoissonDist.

vector<double> XeDist::generateVector ( int  n  ) 

generates a vector of pseudo random variables according to the distribution

Parameters:
n number of elements
Returns:
A vector of size n
virtual double XeDist::logPdf ( double  x  )  [virtual]

returns logs of probability density function

Returns:
Log of probability density function
Parameters:
x Point at which is it evaluated

Reimplemented in ExponentialDist, GaussianDist, and PoissonDist.

static void XeDist::normalize ( TGraph *  graph,
double  toWhat = 1. 
) [static]

Normalize TGraph the way I like.

Parameters:
graph graph to be normalized
toWhat requested sum of graph after normalisation (1.-> makes it a distribution!)
static void XeDist::normalize ( TH1F *  h,
double  toWhat = 1. 
) [static]

Normalize histograms the way I like.

Parameters:
h histogram to be normalized
toWhat requested sum of histogram after normalisation
virtual double XeDist::pdf ( double  x  )  [pure virtual]

returns probability density function

Returns:
Probability density function
Parameters:
x Point at which is it evaluated

Implemented in TabulatedDist, UniformDist, ExponentialDist, Chi2Dist, GaussianDist, and PoissonDist.


Member Data Documentation

TRandom3 XeDist::random [static, protected]

random generator


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1