Example program to test JTOOLS::JQuantile calculation.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "TRandom.h"
#include "JTools/JQuantile.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to test JTOOLS::JQuantile calculation.
- Author
- mdejong
Definition in file JQuantile.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file JQuantile.cc.
33 JParser<> zap(
"Example program to test quantile calculation.");
43 catch(
const exception &error) {
44 FATAL(error.what() << endl);
47 if (numberOfEvents < 2) {
48 FATAL(
"Fatal error: number of events " << numberOfEvents << endl);
51 gRandom->SetSeed(seed);
55 for (
int i = 0; i != numberOfEvents; ++i) {
56 quantile.put(gRandom->Gaus(
x, sigma));
59 NOTICE(
"quantity " <<
CENTER(10) <<
"calculated" <<
" | " <<
CENTER(10) <<
"true" << endl);
60 NOTICE(
"mean " <<
FIXED(10,3) << quantile.getMean() <<
" | " <<
FIXED(10,3) <<
x << endl);
61 NOTICE(
"RMS " <<
FIXED(10,3) << quantile.getSTDev() <<
" | " <<
FIXED(10,3) << sigma << endl);
Utility class to parse command line options.
Auxiliary data structure for floating point format specification.
Auxiliary data structure for alignment of data.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object