Jpp - the software that should make you happy
|
Implementation of the different Kolmogorov-related tests. More...
#include <JTestKolmogorov_t.hh>
Public Member Functions | |
JTestKolmogorov_t () | |
Default constructor. More... | |
JTestResult | JKolmogorovTest (TH1 *h1, TH1 *h2, double threshold, std::string testName, std::string parameterName) |
Kolmogorov test for 1D histograms. More... | |
JTestResult | JKolmogorovTestSlice (TH2 *h1, TH2 *h2, double threshold, double failuresThreshold, std::string testName, std::string parameterName, char slice) |
Kolmogorov test for sliced 2D histograms. More... | |
JTestResult | JKolmogorovTest2D (TH2 *h1, TH2 *h2, double threshold, std::string testName, std::string parameterName) |
Kolmogorov test for 2D histograms. More... | |
Implementation of the different Kolmogorov-related tests.
Definition at line 15 of file JTestKolmogorov_t.hh.
|
inline |
|
inline |
Kolmogorov test for 1D histograms.
The input parameter threshold, is used to evaluate whether the test is passed or failed.
The evaluation is done by comparing the threshold value with the result of the Kolmogorov test. The output of a Kolmogorov test is a p-value.
The parameter threshold should therefore be a real value between 0 and 1.
h1 | First histogram |
h2 | Second historgram |
threshold | p-value |
parameterName | Name of the parameter used to test the histograms |
testName | Name of the test used to compare the histograms |
Definition at line 37 of file JTestKolmogorov_t.hh.
|
inline |
Kolmogorov test for sliced 2D histograms.
The histograms are sliced along the axis specified by the slice parameter. A slice per bin is made.
For each of the slices, the input parameter threshold is used to evaluate whether the test is passed or failed.
The evaluation is done by comparing the threshold value with the result of the Kolmogorov test. The output of the Kolmogorov test is a p-value.
The parameter threshold should therefore be a real value between 0 and 1. The fraction of failed tests is compared to the input parameter failuresThreshold. If this fraction is larger than failuresThreshold, the test fails.
h1 | First histogram |
h2 | Second histogram |
threshold | Threshold value for the test result |
failuresThreshold | Threshold value for the test result |
parameterName | Name of the parameter used to test the histograms |
testName | Name of the test used to compare the histograms |
slice | The axis along which the histogram is sliced. |
Definition at line 139 of file JTestKolmogorov_t.hh.
|
inline |
Kolmogorov test for 2D histograms.
The input parameter threshold, is used to evaluate whether the test is passed or failed.
The evaluation is done by comparing the threshold value with the result of the Kolmogorov test. The output of a Kolmogorov test is a p-value.
The parameter threshold should therefore be a real value between 0 and 1.
h1 | First histogram |
h2 | Second historgram |
threshold | p-value |
parameterName | Name of the parameter used to test the histograms |
testName | Name of the test used to compare the histograms |
Definition at line 260 of file JTestKolmogorov_t.hh.