From 4516319ff93c65650dade21a34f33fb7e9f8b96c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 1 Mar 2021 11:43:39 +0100 Subject: get_fitted: also provide information on static (sub)models --- lib/functions.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/functions.py') 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 -- cgit v1.2.3