Esempio n. 1
0
 def make_table_row(self):
     return self.textTable.make_table_row(self.testStat, 
                                              self.testPValue,
                                              self.testReliability,
                             DisplacementTestType.get_string(self.testType),
                             DisplacementTestType.get_dim(self.testType),
                                 self.testPassed and "passed" or "failed")
 def append_comment_testType(self, epochList):
     if epochList.testType is None:
         testType = "# coord"
     else:
         from gizela.stat.DisplacementTestType import DisplacementTestType
         testType = DisplacementTestType.get_string(epochList.testType)
         
     label = self.config["testType"]["label"]
     #print "Label:", label, testType
     self.append_comment_line(label + ": " + testType)
Esempio n. 3
0
    def _compute_pvalue(self, point):
        'computes p-value for dimension dim and test self.apriori=True/False'
        if self.apriori:
            from scipy.stats import chi2
            point.testPValue = float(chi2.cdf(point.testStat,
                                              DisplacementTestType.get_dim(point.testType)))
            #print point.testStat
            #print point.id, ": test:",\
            #DisplacementTestType.get_string(point.testType), ": dim:",\
            #DisplacementTestType.get_dim(point.testType)

        else: # aposteriori
            point.testPValue = 1 # not implemented
Esempio n. 4
0
 def get_test_dim(self):
     return DisplacementTestType.get_dim(self.testType)
Esempio n. 5
0
 def get_test_type_string(self):
     return DisplacementTestType.get_string(self.testType)