1 #ifndef __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_1D__
2 #define __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_1D__
14 namespace JCOMPAREHISTOGRAMS {
34 JTest_t(
"KS_1D",
"p-Value(KS)"),
44 std::istream&
read(std::istream&
in)
override{
58 if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
59 ERROR(
"For 2D histograms call JTestKolmogorov_2D: " << o1->GetName() << endl);
61 }
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
63 TH1D*
h1 =
dynamic_cast<TH1D*
>(o1);
64 TH1D* h2 =
dynamic_cast<TH1D*
>(o2);
Interface to read input and write output for TObject tests.
Implementation of the different Kolmogorov-related tests.
then for HISTOGRAM in h0 h1
JTestKolmogorov_1D()
Default constructor.
JTestResult JKolmogorovTest(TH1 *h1, TH1 *h2, double threshold, std::string testName, std::string parameterName)
Kolmogorov test for 1D histograms.
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/.
std::istream & read(std::istream &in) override
Read test parameters from input.
double threshold
threshold p-value to decide if test is passed.
const std::string resultType
result type
const std::string testName
test name
void test(TObject *o1, TObject *o2) override
Applies Kolmogorov test for two ROOT TH1 histograms.
Structure containing the result of the test.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Implementation of the Kolmogorov test for 1D histograms.