#include <GammaFunctionGenerator.h>
Public Member Functions | |
GammaFunctionGenerator () | |
Constructor. More... | |
void | setParameters (double a, double b, double xm) |
The parameters must be set before shooting. More... | |
double | shoot (RandomEngineAndDistribution const *) const |
virtual | ~GammaFunctionGenerator () |
Destructor. More... | |
Private Member Functions | |
double | gammaFrac (RandomEngineAndDistribution const *) const |
values 0<a<1. More... | |
double | gammaInt (RandomEngineAndDistribution const *) const |
integer values More... | |
Private Attributes | |
double | alpha |
std::vector< double > | approxLimit |
bool | badRange |
double | beta |
std::vector< double > | coreCoeff |
double | coreProba |
double | frac |
std::vector< double > | integralToApproxLimit |
Genfun::IncompleteGamma | myIncompleteGamma |
unsigned | na |
std::vector < GammaNumericalGenerator > | theGammas |
double | xmax |
double | xmin |
Definition at line 21 of file GammaFunctionGenerator.h.
GammaFunctionGenerator::GammaFunctionGenerator | ( | ) |
Constructor.
Definition at line 5 of file GammaFunctionGenerator.cc.
References approxLimit, coreCoeff, alignCSCRings::e, i, integralToApproxLimit, myIncompleteGamma, theGammas, and xmax.
|
virtual |
|
private |
values 0<a<1.
Definition at line 62 of file GammaFunctionGenerator.cc.
References create_public_lumi_plots::exp, RandomEngineAndDistribution::flatShoot(), frac, fff_deleter::log, AlCaHLTBitMon_ParallelJobs::p, lumiQueryAPI::q, findQualityFiles::v, and x.
Referenced by shoot().
|
private |
integer values
Definition at line 90 of file GammaFunctionGenerator.cc.
References approxLimit, coreCoeff, coreProba, RandomEngineAndDistribution::flatShoot(), fff_deleter::log, na, theGammas, and xmin.
Referenced by shoot().
void GammaFunctionGenerator::setParameters | ( | double | a, |
double | b, | ||
double | xm | ||
) |
The parameters must be set before shooting.
Definition at line 113 of file GammaFunctionGenerator.cc.
References a, alpha, approxLimit, b, badRange, beta, coreProba, frac, integralToApproxLimit, myIncompleteGamma, na, theGammas, tmp, xmax, and xmin.
Referenced by EMShower::compute().
double GammaFunctionGenerator::shoot | ( | RandomEngineAndDistribution const * | random | ) | const |
shoot along a gamma distribution with shape parameter alpha and scale beta values > xmin
Definition at line 33 of file GammaFunctionGenerator.cc.
References alpha, badRange, beta, gammaFrac(), gammaInt(), gf, na, and xmin.
Referenced by EMShower::compute().
|
private |
Definition at line 67 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 56 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), gammaInt(), and setParameters().
|
private |
Definition at line 75 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 67 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 50 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and gammaInt().
|
private |
Definition at line 53 of file GammaFunctionGenerator.h.
Referenced by gammaInt(), and setParameters().
|
private |
Definition at line 65 of file GammaFunctionGenerator.h.
Referenced by gammaFrac(), and setParameters().
|
private |
Definition at line 72 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 69 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 63 of file GammaFunctionGenerator.h.
Referenced by gammaInt(), setParameters(), and shoot().
|
private |
Definition at line 47 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), gammaInt(), and setParameters().
|
private |
Definition at line 60 of file GammaFunctionGenerator.h.
Referenced by svgfig.XAxis::__repr__(), GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 59 of file GammaFunctionGenerator.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), gammaInt(), setParameters(), shoot(), and svgfig.Axes::SVG().