예제 #1
0
파일: test.py 프로젝트: yiakwy/PyMatrix3
 def test_ubds(self):
     print("variation of col:")
     b = const.get_b(100, 10)
     print("b=\n", b)
     print(b.ubds_vt())
     from numpy import array
     import numpy as np
     print("numpy result: \n%s" % np.std( array(b.tolist()), axis=0))
     print("End of Statistic Testing")
예제 #2
0
파일: test.py 프로젝트: yiakwy/PyMatrix3
 def test_vt(self):
     print("---Test 6: Statistics ---")
     print("mean of col:")
     b = const.get_b(100, 10)
     print("b=\n", b)
     print(b.mean_vt())
     from numpy import array
     import numpy as np
     print("numpy result: \n%s" % np.mean(array(b.tolist()), axis=0))