Example #1
0
 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")
Example #2
0
 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))