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
def testSpectra(self): self.failUnlessEqual( round(likelihood.factory("spectra").calculate(fft, state), 4), 0.6796)
def testPSD(self): self.failUnlessEqual( round(likelihood.factory("psd").calculate(fft, state), 4), 0.1562)
def testPoisson(self): self.failUnlessEqual( round(likelihood.factory("poisson").calculate(fft, state), 4), -38.8645)
def testPSD(self): self.failUnlessEqual(round(likelihood.factory("psd").calculate(fft, state),4), 0.1562)
def testSpectra(self): self.failUnlessEqual(round(likelihood.factory("spectra").calculate(fft, state),4), 0.6796)
def testPoisson(self): self.failUnlessEqual(round(likelihood.factory("poisson").calculate(fft, state),4),-38.8645)