diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 15:50:29 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 15:50:29 +0200 |
commit | 29b9929bf1ff844a755a45883fbbdc47dcd114bc (patch) | |
tree | ce0fe14d749acfbdf53929c7e7c9bf428dcc874a | |
parent | f00cd3e06832c965b47d0cc9b09a45f846efc760 (diff) |
lint
-rw-r--r-- | lib/functions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/functions.py b/lib/functions.py index a0631b8..ebeb2a2 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -298,6 +298,7 @@ class analytic: 'safe_sqrt': lambda x: np.sqrt(np.abs(x)), } + @staticmethod def functions(safe_functions_enabled = False): """ Retrieve pre-defined set of regression function candidates. @@ -387,6 +388,7 @@ class analytic: return functions + @staticmethod def _fmap(reference_type, reference_name, function_type): """Map arg/parameter name and best-fit function name to function text suitable for AnalyticFunction.""" ref_str = '{}({})'.format(reference_type,reference_name) @@ -408,6 +410,7 @@ class analytic: return 'np.sqrt({})'.format(ref_str) return 'analytic._{}({})'.format(function_type, ref_str) + @staticmethod def function_powerset(fit_results, parameter_names, num_args = 0): """ Combine per-parameter regression results into a single multi-dimensional function. |