22 int main(
int argc,
char**argv)
27 const double xmin = -10.0;
28 const double xmax = +10.0;
32 unsigned int numberOfEvents;
39 JParser<> zap(
"Example program to test Legendre polynome.");
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
63 DEBUG(
"data: " <<
FIXED(7,3) << i->first <<
' ' <<
FIXED(7,3) << i->second << endl);
71 for (
size_t n = 0;
n != N + 1; ++
n) {
72 STATUS(
"Legendre: " << setw(2) <<
n <<
' ' <<
FIXED(7,3) <<
g1[
n] << endl);
75 if (numberOfEvents > 0) {
79 for (
unsigned int i = 0; i != numberOfEvents; ++i) {
81 const double x = gRandom->Uniform(
xmin,
xmax);
82 const double y =
f1(
x);
83 const double z =
g1(
x);
int main(int argc, char **argv)
Auxiliary methods for mathematics.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Double_t g1(const Double_t x)
Function.
int numberOfBins
number of bins for average CDF integral of optical module
Utility class to parse command line options.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Base class for Legendre polynome.
Template definition for function evaluation of Legendre polynome.