mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
analysis.py v 1.1.0.003
This commit is contained in:
parent
bee1edbf25
commit
eb51d876a5
Binary file not shown.
@ -6,10 +6,12 @@
|
|||||||
# this module has not been optimized for multhreaded computing
|
# this module has not been optimized for multhreaded computing
|
||||||
# setup:
|
# setup:
|
||||||
|
|
||||||
__version__ = "1.1.0.002"
|
__version__ = "1.1.0.003"
|
||||||
|
|
||||||
# changelog should be viewed using print(analysis.__changelog__)
|
# changelog should be viewed using print(analysis.__changelog__)
|
||||||
__changelog__ = """changelog:
|
__changelog__ = """changelog:
|
||||||
|
1.1.0.003:
|
||||||
|
- resolved nopython mode for mean, median, stdev, variance
|
||||||
1.1.0.002:
|
1.1.0.002:
|
||||||
- snapped (removed) majority of uneeded imports
|
- snapped (removed) majority of uneeded imports
|
||||||
- forced object mode (bad) on all jit
|
- forced object mode (bad) on all jit
|
||||||
@ -214,22 +216,22 @@ def histo_analysis(hist_data):
|
|||||||
|
|
||||||
return mean_derivative, stdev_derivative
|
return mean_derivative, stdev_derivative
|
||||||
|
|
||||||
@jit(forceobj=True)
|
@jit(nopython=True)
|
||||||
def mean(data):
|
def mean(data):
|
||||||
|
|
||||||
return np.mean(data)
|
return np.mean(data)
|
||||||
|
|
||||||
@jit(forceobj=True)
|
@jit(nopython=True)
|
||||||
def median(data):
|
def median(data):
|
||||||
|
|
||||||
return np.median(data)
|
return np.median(data)
|
||||||
|
|
||||||
@jit(forceobj=True)
|
@jit(nopython=True)
|
||||||
def stdev(data):
|
def stdev(data):
|
||||||
|
|
||||||
return np.std(data)
|
return np.std(data)
|
||||||
|
|
||||||
@jit(forceobj=True)
|
@jit(nopython=True)
|
||||||
def variance(data):
|
def variance(data):
|
||||||
|
|
||||||
return np.var(data)
|
return np.var(data)
|
Loading…
Reference in New Issue
Block a user