Jpp
18.2.0
the software that should make you happy
|
Implementation of the different Runs-related tests. More...
#include <JTestRuns_t.hh>
Public Member Functions | |
JTestRuns_t () | |
Default constructor. More... | |
JTestResult | JRunsTest (TH1 *h1, TH1 *h2, double threshold, std::string testName, std::string parameterName) |
Implements the Wald-Wolfowitx runs test: https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test In this, an expected number of runs and a standard deviation are computed from the number of bins and the number of "aboves" and "belows". More... | |
JTestResult | JRunsTestSlice (TH2 *h1, TH2 *h2, double threshold, double failuresThreshold, std::string testName, std::string parameterName, char slice) |
Runs test for sliced 2D histograms. More... | |
Implementation of the different Runs-related tests.
Definition at line 20 of file JTestRuns_t.hh.
|
inline |
|
inline |
Implements the Wald-Wolfowitx runs test: https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test In this, an expected number of runs and a standard deviation are computed from the number of bins and the number of "aboves" and "belows".
The test returns the difference between the observed number of runs and the expected number of runs, expressed in standard deviations. This is compared to the threshold input parameter.
h1 | First histogram |
h2 | Second histogram |
threshold | |
parameterName | Name of the parameter used to test the histograms |
testName | Name of the test used to compare the histograms |
Definition at line 40 of file JTestRuns_t.hh.
|
inline |
Runs 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 Runs test.
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 fraction of failed tests. |
testName | Name of the test used to compare the histograms |
parameterName | Name of the parameter used to test the histograms |
slice | The axis along which the histogram is sliced. |
Definition at line 114 of file JTestRuns_t.hh.