| 
    Jpp 19.3.0-rc.2
    
   the software that should make you happy 
   | 
 
Significance test. More...
#include <JTestSignificance.hh>
  
Public Member Functions | |
| JTestSignificance () | |
| Default constructor.   | |
| void | test (const TObject *o1, const TObject *o2) override | 
| Applies Significance test for two ROOT TH1 histograms.   | |
| std::istream & | read (std::istream &in) override | 
| Read test parameters from input.   | |
| virtual std::ostream & | write (std::ostream &out, const char delimiter=' ', const bool onlyFailures=false) const | 
| Write test result to output.   | |
| virtual void | save (TFile *f, const std::string &path, const bool onlyFailures=false) const | 
| Writes the test result to root file.   | |
| const std::string & | getTestName () const | 
| Get test name.   | |
| const std::string & | getResultType () const | 
| Get result type.   | |
Protected Attributes | |
| const std::string | testName | 
| test name   | |
| const std::string | resultType | 
| test result type   | |
Private Attributes | |
| double | threshold | 
| threshold p-value to decide if test is passed.   | |
| double | K | 
| normalization factor between histograms.   | |
Significance test.
Compares two histograms 

   
![\[
S = \frac{1}{N} \cdot \sum_{i=0}^{N} \frac{|a_i - K \cdot b_i|}{\sqrt{\sigma ^2(a_i) + K^2 \cdot \sigma ^2(b_i)}}
\]](form_9.png)
where:














A threshold value for 
Definition at line 42 of file JTestSignificance.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 50 of file JTestSignificance.hh.
      
  | 
  inlineoverridevirtual | 
Applies Significance test for two ROOT TH1 histograms.
| o1 | First histogram | 
| o2 | Second histogram | 
Implements JCOMPAREHISTOGRAMS::JTest_t.
Definition at line 61 of file JTestSignificance.hh.
      
  | 
  inlineoverridevirtual | 
Read test parameters from input.
| in | input stream | 
Implements JCOMPAREHISTOGRAMS::JTest_t.
Definition at line 137 of file JTestSignificance.hh.
      
  | 
  inlinevirtualinherited | 
Write test result to output.
| out | output stream | 
| delimiter | field delimiter | 
| onlyFailures | if true, write only failures. | 
Definition at line 84 of file JTest_t.hh.
      
  | 
  inlinevirtualinherited | 
Writes the test result to root file.
| f | A ROOT file | 
| path | Path in root file. | 
| onlyFailures | If true, write only failures. | 
Definition at line 108 of file JTest_t.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  private | 
threshold p-value to decide if test is passed.
Definition at line 152 of file JTestSignificance.hh.
      
  | 
  private | 
normalization factor between histograms.
Definition at line 153 of file JTestSignificance.hh.
      
  | 
  protectedinherited | 
test name
Definition at line 180 of file JTest_t.hh.
      
  | 
  protectedinherited | 
test result type
Definition at line 181 of file JTest_t.hh.