25inline Double_t
g1(
const Double_t x)
27 return TMath::Gaus(x, 0.0, 1.0, kTRUE);
37inline Double_t
G1(
const Double_t x)
39 return 0.5 * (1.0 + TMath::Erf(sqrt(0.5)*x));
48int main(
int argc,
char **argv)
59 JParser<> zap(
"Example program to test quantiles calculation of a function.");
68 catch(
const exception &error) {
69 FATAL(error.what() << endl);
76 if (Q < 0.0 || Q > 1.0) {
77 FATAL(
"Fatal error: quantile " << Q << endl);
82 const Double_t xmin = -5.0;
83 const Double_t xmax = +5.0;
87 NOTICE(
"quantity " << setw(10) <<
"calculated" <<
" / " << setw(10) <<
"true" << endl);
89 NOTICE(
"FWHM " <<
FIXED(10,6) << quantiles.
getFWHM() <<
" / " <<
FIXED(10,6) << 2.0*sqrt(2.0*log(2.0)) << endl);
94 ASSERT(fabs(quantiles.
getX() - 0.0) < precision);
95 ASSERT(fabs(quantiles.
getFWHM() - 2.0*sqrt(2.0*log(2.0))) < precision);
General purpose class for a collection of sorted elements.
General purpose messaging.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Double_t g1(const Double_t x)
Function.
int main(int argc, char **argv)
Double_t G1(const Double_t x)
Integral of method g1.
int numberOfBins
number of bins for average CDF integral of optical module
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.