31 int do_main(
int argc,
char **argv)
36 unsigned int numberOfEvents;
42 JParser<> zap(
"Example program to test 1D interpolation of a polynome.");
50 catch(
const exception &error) {
55 FATAL(
"Number of degrees " << N <<
" < 1." <<
endl);
64 for (
int i = 1; i != N + 1; ++i) {
65 f1.push_back(f1.rbegin()->getDerivative());
74 const double xmin = 0.0;
75 const double xmax = PI;
78 const double dx = 0.0 * PI;
89 if (numberOfEvents != 0) {
93 for (
int i = 0; i !=
sizeof(Q)/
sizeof(Q[0]); ++i) {
102 for (
unsigned int i = 0; i != numberOfEvents; ++i) {
104 const double x =
gRandom->Uniform(xmin, xmax);
107 for (
int i = 0; i !=
sizeof(Q)/
sizeof(Q[0]); ++i) {
112 cout <<
"\nInterpolation with " << N <<
" degrees polynomial:" <<
endl;
114 for (
int i = 0; i !=
sizeof(Q)/
sizeof(Q[0]); ++i) {
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int numberOfBins
number of bins for average CDF integral of optical module
int main(int argc, char **argv)
void setTitle(const std::string &title)
Set title.
Trigonometric function object for sin and cos.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
static const JZero zero
Function object to assign zero value.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).