From ed2899e4d5576ae1942b6bb9f16eae8b3f9dfa0b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 1 Feb 2019 08:08:15 +0100 Subject: Doku --- lib/functions.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/functions.py') diff --git a/lib/functions.py b/lib/functions.py index cc97f9a..22d7e46 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -157,7 +157,12 @@ class AnalyticFunction: Return training data suitable for scipy.optimize.least_squares. arguments: - by_param -- measurement data, partitioned by state/transition name and parameter/arg values + by_param -- measurement data, partitioned by state/transition name and parameter/arg values. + This function only uses by_param[(state_or_tran, *)][model_attribute], + which must be a list or 1-D NumPy array containing the ground truth. + The parameter values in (state_or_tran, *) must be numeric for + all parameters this function depends on -- otherwise, the + corresponding data will be left out. state_or_tran -- state or transition name, e.g. "TX" or "send" model_attribute -- model attribute name, e.g. "power" or "duration" @@ -207,6 +212,9 @@ class AnalyticFunction: by_param -- measurement data, partitioned by state/transition name and parameter/arg values state_or_tran -- state or transition name, e.g. "TX" or "send" model_attribute -- model attribute name, e.g. "power" or "duration" + + The ground truth is read from by_param[(state_or_tran, *)][model_attribute], + which must be a list or 1-D NumPy array. """ X, Y, num_valid, num_total = self.get_fit_data(by_param, state_or_tran, model_attribute) if num_valid > 2: -- cgit v1.2.3