guess_bounds
- sherpa.utils.guess_bounds(x, xhi=True)[source] [edit on github]
Guess the bounds of a parameter from the independent axis.
- Parameters
x (array_like) – The axis values.
xhi (bool, optional) – When
True
, the return value is two dictionaries, with values set to 1/3 and 2/3 along the axis, otherwise a single dictionary, with a value set to the mid-point is returned.
- Returns
ans – When
xhi
is True then two dictionaries are returned, otherwise one. The keys are ‘val’, ‘min’, and ‘max’.- Return type
See also