def test_asymAEnvelope_2(self): ''' Test asymetricA envelope miu ''' expectation = genericEnvelope(sigma , time , 11 , 1)[1] miu = genericEnvelope(sigma , time , 21 , 0 , expectation , increase , decay)[1] self.assertEqual(miu , 429.5)
def test_asymAEnvelope_3(self): ''' Test asymetricA envelope length after cutting ''' expectation = genericEnvelope(sigma , time , 11 , 1)[1] envelope = genericEnvelope(sigma , time , 21 , 1 , expectation , increase , decay)[0] self.assertEqual(envelope.shape[0] , 998L)
def test_asymAEnvelope_3(self): """ Test asymetricA envelope length after cutting """ expectation = genericEnvelope(sigma, time, 11, 1)[1] envelope = genericEnvelope(sigma, time, 21, 1, expectation, increase, decay)[0] self.assertEqual(envelope.shape[0], 998L)
def test_asymAEnvelope_2(self): """ Test asymetricA envelope miu """ expectation = genericEnvelope(sigma, time, 11, 1)[1] miu = genericEnvelope(sigma, time, 21, 0, expectation, increase, decay)[1] self.assertEqual(miu, 429.5)
def test_asymAEnvelope_1(self): """ Test asymetricA envelope length """ expectation = genericEnvelope(sigma, time, 11, 1)[1] envelope = genericEnvelope(sigma, time, 21, 0, expectation, increase, decay)[0] self.assertEqual(envelope.shape, time.shape)
def test_asymAEnvelope_1(self): ''' Test asymetricA envelope length ''' expectation = genericEnvelope(sigma , time , 11 , 1)[1] envelope = genericEnvelope(sigma , time , 21 , 0 , expectation , increase , decay)[0] self.assertEqual(envelope.shape , time.shape)
def test_rectEnvelope_2(self): """ Test rectangular (typeA) envelope miu """ #### !!!! #### miu = genericEnvelope(sigma, time, 32, 0)[1] self.assertEqual(miu, 499.5)
def test_rectEnvelope_2(self): ''' Test rectangular (typeA) envelope miu ''' #### !!!! #### miu = genericEnvelope(sigma , time , 32 , 0)[1] self.assertEqual(miu , 499.5)
def test_minSigEnerg_1(self): ''' Test of common energy of two exact envelopes ''' envelope = genericEnvelope(sigma , time , 11 , 0)[0] energy = minSigEnerg(sigma , envelope , density , time , 11) energy = float("{0:.2f}".format(energy)) self.assertEqual(energy , density)
def test_minSigEnerg_1(self): """ Test of common energy of two exact envelopes """ envelope = genericEnvelope(sigma, time, 11, 0)[0] energy = minSigEnerg(sigma, envelope, density, time, 11) energy = float("{0:.2f}".format(energy)) self.assertEqual(energy, density)
def test_gaussEnvelope_1(self): ''' Test standard gaussian envelope length ''' envelope = genericEnvelope(sigma , time , 11 , 0)[0] self.assertEqual(envelope.shape , time.shape)
def test_gaussEnvelope_2(self): """ Test standard gaussian envelope miu """ miu = genericEnvelope(sigma, time, 11, 1)[1] self.assertEqual(miu, 429.5)
def test_rectEnvelope_3(self): ''' Test rectangular (typeB) envelope length after cutting ''' envelope = genericEnvelope(sigma , time , 33 , 1)[0] self.assertEqual(envelope.shape[0] , 261L)
def test_gaussEnvelope_3(self): """ Test standard gaussian envelope length after cutting """ envelope = genericEnvelope(sigma, time, 11, 1)[0] self.assertEqual(envelope.shape[0], 857L)
def test_rectEnvelope_1(self): ''' Test rectangular envelope length ''' envelope = genericEnvelope(sigma , time , 31 , 0)[0] self.assertEqual(envelope.shape , time.shape)
def test_gaussEnvelope_3(self): ''' Test standard gaussian envelope length after cutting ''' envelope = genericEnvelope(sigma , time , 11 , 1)[0] self.assertEqual(envelope.shape[0] , 857L)
def test_rectEnvelope_1(self): """ Test rectangular envelope length """ envelope = genericEnvelope(sigma, time, 31, 0)[0] self.assertEqual(envelope.shape, time.shape)
def test_gaussEnvelope_2(self): ''' Test standard gaussian envelope miu ''' miu = genericEnvelope(sigma , time , 11 , 1)[1] self.assertEqual(miu , 429.5)
def test_rectEnvelope_3(self): """ Test rectangular (typeB) envelope length after cutting """ envelope = genericEnvelope(sigma, time, 33, 1)[0] self.assertEqual(envelope.shape[0], 261L)
def test_gaussEnvelope_1(self): """ Test standard gaussian envelope length """ envelope = genericEnvelope(sigma, time, 11, 0)[0] self.assertEqual(envelope.shape, time.shape)