From 87fa099614916f3f818dc9a6919711e98eec71d3 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Thu, 20 May 2021 16:32:39 -0400 Subject: [PATCH] blah blah --- src/pyhf/parameters/paramsets.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pyhf/parameters/paramsets.py b/src/pyhf/parameters/paramsets.py index 30fce98cc1..dc65487415 100644 --- a/src/pyhf/parameters/paramsets.py +++ b/src/pyhf/parameters/paramsets.py @@ -26,6 +26,10 @@ def __init__(self, **kwargs): f'misconfigured parameter set {self.name}. Scalar but N>1 parameters.' ) + @property + def maximal_pars(self): + return self.suggested_init + class unconstrained(paramset): def __init__(self, **kwargs): @@ -54,6 +58,10 @@ def width(self): except AttributeError: return [1.0] * self.n_parameters + @property + def maximal_pars(self): + return [0.0] * self.n_parameters + class constrained_by_poisson(constrained_paramset): def __init__(self, **kwargs): @@ -71,3 +79,7 @@ def width(self): ).tolist() except AttributeError: raise RuntimeError('need to know rate factor to compu') + + @property + def maximal_pars(self): + return [1.0] * self.n_parameters