Ejemplo n.º 1
0
 def test_mean_DEV(self):
     ref_mean_DEV = (1.0 / 4.0) * (1.0 / 8.0) * 100
     ref_mean_DEV_prime = (1.0 / 4.0) * (5.0 / 8.0) * 100
     mean_DEV, mean_DEV_prime = lib_ptrm.get_mean_DEV(
         self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check, self.ref_n, self.delta_x_prime
     )
     self.assertAlmostEqual(ref_mean_DEV, mean_DEV)
     self.assertAlmostEqual(ref_mean_DEV_prime, mean_DEV_prime)
Ejemplo n.º 2
0
 def get_mean_DEV(self):
     mean_DEV, mean_DEV_prime = lib_ptrm.get_mean_DEV(self.pars['sum_ptrm_checks'], self.pars['sum_abs_ptrm_checks'], 
                                                      self.pars['n_ptrm'], self.pars['delta_x_prime'])
     self.pars['mean_DEV'] = mean_DEV
     self.pars['mean_DEV_prime'] = mean_DEV_prime
Ejemplo n.º 3
0
 def get_mean_DEV(self):
     mean_DEV, mean_DEV_prime = lib_ptrm.get_mean_DEV(self.pars['sum_ptrm_checks'], self.pars['sum_abs_ptrm_checks'],
                                                      self.pars['n_ptrm'], self.pars['delta_x_prime'])
     self.pars['mean_DEV'] = mean_DEV
     self.pars['mean_DEV_prime'] = mean_DEV_prime
Ejemplo n.º 4
0
 def test_mean_DEV(self):
     ref_mean_DEV = (old_div(1., 4.)) * ( old_div(1., 8.))  * 100
     ref_mean_DEV_prime = (old_div(1., 4.)) * (old_div(5., 8.))  * 100
     mean_DEV, mean_DEV_prime = lib_ptrm.get_mean_DEV(self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check, self.ref_n, self.delta_x_prime)
     self.assertAlmostEqual(ref_mean_DEV, mean_DEV)
     self.assertAlmostEqual(ref_mean_DEV_prime, mean_DEV_prime)