| 
    Jpp
    17.3.1
    
   the software that should make you happy 
   | 
 
Implementation of the Zeros test for histograms with expected low bin contents. More...
#include <JTestZero_t.hh>
  
 Public Member Functions | |
| JTestZero_t () | |
| Default constructor.  More... | |
| JTestResult | JTestZero_2D (TH2 *h1, TH2 *h2, double outliersThreshold, double threshold, std::string testName, std::string parameterName) | 
| Bin-by-Bin test for 2D histograms where a very low number of entries is expected.  More... | |
Implementation of the Zeros test for histograms with expected low bin contents.
Definition at line 28 of file JTestZero_t.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Bin-by-Bin test for 2D histograms where a very low number of entries is expected.
The test loops over all the bins of both histograms and performs the following operations.
 -Calculates the probability that the observed bin content for histogram A is obtained from a Poisson of parameter 1.
-Compares the previous result with the threshold value given as an input parameter. The result is true if the probability is higher than the threshold.
-Calculates the probability that the observed bin content for histogram B is obtained from a Poisson of parameter 1.
-Compares the previous result with the threshold value given as an input parameter. The result is true if the probability is higher than the threshold.
-Compares the results from both bins: If both are true, or both are false, the test is passed. If one is true and the other is false, the test is failed.
At the end of the loop, a failure fraction is computed and compared to the outliersThreshold parameter. If the failure fraction is above the threshold, the test is failed.
 
| h1 | First object | 
| h2 | Second object | 
| outliersThreshold | Fraction of incompatible bins allowed. | 
| threshold | Poisson 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 54 of file JTestZero_t.hh.
 1.8.5