示例#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
示例#2
0
文件: tests.py 项目: hoyes/scorealign
 def testSpectra(self):
     self.failUnlessEqual(
         round(likelihood.factory("spectra").calculate(fft, state), 4),
         0.6796)
示例#3
0
文件: tests.py 项目: hoyes/scorealign
 def testPSD(self):
     self.failUnlessEqual(
         round(likelihood.factory("psd").calculate(fft, state), 4), 0.1562)
示例#4
0
文件: tests.py 项目: hoyes/scorealign
 def testPoisson(self):
     self.failUnlessEqual(
         round(likelihood.factory("poisson").calculate(fft, state), 4),
         -38.8645)
示例#5
0
文件: tests.py 项目: hoyes/scorealign
 def testPSD(self):
     self.failUnlessEqual(round(likelihood.factory("psd").calculate(fft, state),4), 0.1562)
示例#6
0
文件: tests.py 项目: hoyes/scorealign
 def testSpectra(self):
     self.failUnlessEqual(round(likelihood.factory("spectra").calculate(fft, state),4), 0.6796)
示例#7
0
文件: tests.py 项目: hoyes/scorealign
 def testPoisson(self):
     self.failUnlessEqual(round(likelihood.factory("poisson").calculate(fft, state),4),-38.8645)
示例#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