diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:45 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:45 -0700 |
| commit | a33d49ac4d1ce554c72770927957a089b4023bf1 (patch) | |
| tree | 17ea036b5a0e8b488dc236f0ce48a275ecd80ef8 /python/atms-310/homework/hw3/hw3.py | |
Diffstat (limited to 'python/atms-310/homework/hw3/hw3.py')
| -rwxr-xr-x | python/atms-310/homework/hw3/hw3.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python/atms-310/homework/hw3/hw3.py b/python/atms-310/homework/hw3/hw3.py new file mode 100755 index 0000000..981bb05 --- /dev/null +++ b/python/atms-310/homework/hw3/hw3.py @@ -0,0 +1,17 @@ +import numpy as np +import scipy.stats as s +import glob as glob + +calc = {"mean":np.std, "median":np.median, "std":np.std, "iqr":s.iqr,\ + "skew":s.skew, "kurtosis":s.kurtosis} + +print(calc["kurtosis"]) +def read(file): + fileobj = open(file, "r") + outputstr = fileobj.readlines() + fileobj.close() + outputarray = np.zeros(len(outputstr)) + for i in np.arange(len(outputstr)): + outputarray[i] = float(outputstr[i]) + return outputarray + |
