#include <JTestSignificance_t.hh>
Definition at line 37 of file JTestSignificance_t.hh.
 
  
  
      
        
          | JCOMPAREHISTOGRAMS::JTestSignificance_t::JTestSignificance_t  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
Significance test for histograms. 
 
- Parameters
 - 
  
    | h1 | First object  | 
    | h2 | Second object  | 
    | threshold | Significance threshold  | 
    | K | Normalisation parameter  | 
    | parameterName | Name of the parameter used to test the histograms  | 
    | testName | Name of the test used to compare the histograms | 
  
   
- Returns
 - Test result. 
 
Definition at line 59 of file JTestSignificance_t.hh.
   64       if(h1 -> GetNbinsX() != h2 -> GetNbinsX())
 
   65         ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() << 
" can not be compared." << endl);
 
   68       T* h3 = (
T*)h1->Clone(h1->GetName()==h2->GetName() ?
 
   76       for (
int i=0 ; i < h1->GetNbinsX() ; ++i){
 
   77         for (
int j=0 ; 
j< h1->GetNbinsY() ; ++
j){
 
   78           for (
int k=0 ; 
k< h1->GetNbinsZ() ; ++
k){
 
   80             double a = h1->GetBinContent(i+1,
j+1,
k+1);
 
   81             double b = h2->GetBinContent(i+1,
j+1,
k+1);
 
   84               S += fabs((a - 
K*b)/sqrt(a + 
K*
K*b));
 
   90       S /= (h1->GetNbinsX()*h1->GetNbinsY()*h1->GetNbinsZ());
 
   94       (S < threshold ? passed = 
false : passed = 
true);
 
   96       JResultTitle title(testName, parameterName, passed, S);
 
   98       h3->SetTitle(title.getTitle().c_str());
 
  100       JTestResult 
r (testName,
 
  101                      JRootObjectID(
MAKE_STRING(h1->GetDirectory()->GetPath() << h1->GetName())),
 
  102                      JRootObjectID(
MAKE_STRING(h2->GetDirectory()->GetPath() << h1->GetName())),
 
  103                      parameterName, S , threshold, h3, passed);
 
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
 
static const uint32_t K[64]
 
#define MAKE_CSTRING(A)
Make C-string. 
 
#define MAKE_STRING(A)
Make string. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
std::string to_string(const T &value)
Convert value to string. 
 
 
 
 
The documentation for this class was generated from the following file: