Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTestKolmogorov_Slice2D.hh
Go to the documentation of this file.
1#ifndef __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_SLICE2D__
2#define __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_SLICE2D__
3
4#include <iostream>
5
6#include "TH1.h"
7#include "TH2.h"
8#include "TMath.h"
9
10#include "JLang/JException.hh"
11
15
16
17/**
18 * \author rgruiz, bjung
19 */
20namespace JCOMPAREHISTOGRAMS {}
21namespace JPP { using namespace JCOMPAREHISTOGRAMS; }
22
23namespace JCOMPAREHISTOGRAMS {
24
25 /**
26 * Implementation of the Kolmogorov test for 2D histograms.\n
27 * This class is derived from the abstract class JTest_t(). For a general description of the implementation of this and other tests derived from JTest_t(), see its documentation.\n
28 * This test compares two 2D histograms. If the parameter `slice` equals x, X y or Y, the histograms are sliced along the corresponding axis, and the Kolmogorov test is applied to each slice.\n
29 * The input parameter `threshold`, is used to evaluate whether the test is passed or failed for each slice or for the full 2D distribution.\n
30 * The evaluation is done by comparing the `threshold` value with the resulting p-value.\n
31 * The parameter `threshold` should therefore be a real value between 0 and 1.
32 */
34 public JTestSlice2D
35 {
36 public:
37
38 /**
39 * Default constructor.
40 */
42 JTestSlice2D("KS_Slice2D", "p-Value(KS)", new JTestKolmogorov_1D())
43 {}
44 };
45}
46
47#endif
Exceptions.
Implementation of the Kolmogorov test for 1D histograms.
Implementation of the Kolmogorov test for 2D histograms.
Abstract base class for 2D slice tests.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).