Exemplo n.º 1
0
 def test_samlmu3(self):
     """Test samlmu3 returns same values as samlmu"""
     moments = lmom.samlmu(self.values, 3)
     self.numpyAssertAlmostEqual(moments, self.moments[0:3])
Exemplo n.º 2
0
 def test_samlmu_mom(self):
     """Test samlmu returns correct values for moments"""
     moments = lmom.samlmu(self.values, 5)
     self.numpyAssertAlmostEqual(moments, self.moments)
Exemplo n.º 3
0
 def test_samlmu_list(self):
     """Test samlmu works with list input"""
     moments = lmom.samlmu(list(self.values), 3)
     self.numpyAssertAlmostEqual(moments, self.moments[0:3])
Exemplo n.º 4
0
 def test_samlmu3(self):
     """Test samlmu3 returns same values as samlmu"""
     moments = lmom.samlmu(self.values,3)
     self.numpyAssertAlmostEqual(moments,self.moments[0:3])
Exemplo n.º 5
0
 def test_samlmu_mom(self):
     """Test samlmu returns correct values for moments"""
     moments = lmom.samlmu(self.values,5)
     self.numpyAssertAlmostEqual(moments,self.moments)
Exemplo n.º 6
0
 def test_samlmu_list(self):
     """Test samlmu works with list input"""
     moments = lmom.samlmu(list(self.values),3)
     self.numpyAssertAlmostEqual(moments,self.moments[0:3])