28 int main(
int argc, 
char **argv)
 
   33   unsigned int  numberOfEvents;
 
   42     JParser<> zap(
"Example program to test 1D Legendre interpolation of a polynome.");
 
   53   catch(
const exception &error) {
 
   54     FATAL(error.what() << endl);
 
   65                             double>       JFunction1D_t;
 
   74   const double xmin = -10.0;
 
   75   const double xmax = +10.0;  
 
   79   for (
int i = 0; i != grid.
getSize(); ++i) {
 
   81     const double x = grid.
getX(i);
 
   83     g1[
x]= 
f1(
x) + (
sigma > 0.0 && gRandom->Rndm() < P ? gRandom->Gaus(0.0, 
sigma) : 0.0);
 
   91   for (JFunction1D_t::const_iterator i = 
g1.begin(); i != 
g1.end(); ++i) {
 
   92     DEBUG(
FIXED(12,5) << i->getX() << 
' ' << 
FIXED(12,5) << i->getY() << endl);
 
   96   if (numberOfEvents != 0) {
 
  100     for (
unsigned int i = 0; i != numberOfEvents; ++i) {
 
  102       const double x = gRandom->Uniform(
xmin, 
xmax);
 
  103       const double y = 
f1(
x);
 
  104       const double u = 
g1(
x);
 
  105       const double v = h1(
x);
 
  114     Q[1].
print(cout, 
false);
 
The elements in a collection are sorted according to their abscissa values and a given distance opera...
 
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
 
int main(int argc, char **argv)
 
I/O formatting auxiliaries.
 
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.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for floating point format specification.
 
Recursive template class for polynomial function.