guess_bounds

sherpa.utils.guess.guess_bounds(x: ndarray, xhi: Literal[True] = True) tuple[ValueAndRange, ValueAndRange][source] [edit on github]
sherpa.utils.guess.guess_bounds(x: ndarray, xhi: Literal[False]) ValueAndRange

Guess the bounds of a parameter from the independent axis.

Parameters:
xarray_like

The axis values.

xhibool, 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:
ansdict or (dict, dict)

When xhi is True then two dictionaries are returned, otherwise one. The keys are ‘val’, ‘min’, and ‘max’.

See also

get_midpoint