analysis.py v 1.2.1.002

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
ltcptgeneral 2020-05-13 11:35:46 -05:00
parent 7ba19ac627
commit 192a74fd81

View File

@ -7,10 +7,12 @@
# current benchmark of optimization: 1.33 times faster # current benchmark of optimization: 1.33 times faster
# setup: # setup:
__version__ = "1.2.1.001" __version__ = "1.2.1.002"
# changelog should be viewed using print(analysis.__changelog__) # changelog should be viewed using print(analysis.__changelog__)
__changelog__ = """changelog: __changelog__ = """changelog:
1.2.1.002:
- renamed ArrayTest class to Array
1.2.1.001: 1.2.1.001:
- added add, mul, neg, and inv functions to ArrayTest class - added add, mul, neg, and inv functions to ArrayTest class
- added normalize function to ArrayTest class - added normalize function to ArrayTest class
@ -943,7 +945,7 @@ class StatisticalTest:
results = scipy.stats.normaltest(a, axis = axis, nan_policy = nan_policy) results = scipy.stats.normaltest(a, axis = axis, nan_policy = nan_policy)
return {"z-score": results[0], "p-value": results[1]} return {"z-score": results[0], "p-value": results[1]}
class ArrayTest(): # tests on nd arrays independent of basic_stats class Array(): # tests on nd arrays independent of basic_stats
def elementwise_mean(self, *args): # expects arrays that are size normalized def elementwise_mean(self, *args): # expects arrays that are size normalized