summaryrefslogtreecommitdiff
path: root/lib/functions.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-01 11:43:39 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-01 11:43:39 +0100
commit4516319ff93c65650dade21a34f33fb7e9f8b96c (patch)
tree373d36351d3df8d12f6e9d8df7a00770ca1294d7 /lib/functions.py
parentf0c6aced6ec7670b38daa18a0dc0631eb19f2e11 (diff)
get_fitted: also provide information on static (sub)models
Diffstat (limited to 'lib/functions.py')
-rw-r--r--lib/functions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/functions.py b/lib/functions.py
index 067514f..0f0bf47 100644
--- a/lib/functions.py
+++ b/lib/functions.py
@@ -157,6 +157,13 @@ class ModelInfo:
pass
+class StaticInfo:
+ def __init__(self, data):
+ self.mean = np.mean(data)
+ self.median = np.median(data)
+ self.std = np.std(data)
+
+
class AnalyticInfo(ModelInfo):
def __init__(self, fit_result, function):
self.fit_result = fit_result