Beispiel #1
0
 def __init__(self, lik_method, path_method):
     self.likproc = likelihood.factory(lik_method)
     self.pathproc = path.factory(path_method)
     self.lik_method = lik_method
     self.path_method = path_method
Beispiel #2
0
 def testSpectra(self):
     self.failUnlessEqual(
         round(likelihood.factory("spectra").calculate(fft, state), 4),
         0.6796)
Beispiel #3
0
 def testPSD(self):
     self.failUnlessEqual(
         round(likelihood.factory("psd").calculate(fft, state), 4), 0.1562)
Beispiel #4
0
 def testPoisson(self):
     self.failUnlessEqual(
         round(likelihood.factory("poisson").calculate(fft, state), 4),
         -38.8645)
Beispiel #5
0
 def testPSD(self):
     self.failUnlessEqual(round(likelihood.factory("psd").calculate(fft, state),4), 0.1562)
Beispiel #6
0
 def testSpectra(self):
     self.failUnlessEqual(round(likelihood.factory("spectra").calculate(fft, state),4), 0.6796)
Beispiel #7
0
 def testPoisson(self):
     self.failUnlessEqual(round(likelihood.factory("poisson").calculate(fft, state),4),-38.8645)
Beispiel #8
0
 def __init__(self, lik_method, path_method):
     self.likproc = likelihood.factory(lik_method)
     self.pathproc = path.factory(path_method)
     self.lik_method = lik_method
     self.path_method = path_method