spey.hypothesis_testing.upper_limits.find_root_limits#
- spey.hypothesis_testing.upper_limits.find_root_limits(computer: Callable[[float], float], loc: float = 0.0, low_ini: float = 1.0, hig_ini: float = 1.0, low_bound: float = 1e-10, hig_bound: float = 100000.0) Tuple[ComputerWrapper, ComputerWrapper] [source]#
Find upper and lower bracket limits for the root finding algorithm
- Parameters:
computer (
Callable[[float], float]
) – Function that we want to find the rootloc (
float
, default0.0
) – location of the root e.g.0.95
for \(1-CL_s\) valuelow_ini (
float
, default1.0
) – Initial value for low brackethig_ini (
float
, default1.0
) – initial value for high bracketlow_bound (
float
, default1e-10
) – Stop the execution below this valuehig_bound (
float
, default1e5
) – Stop the execution above this value
- Returns:
Returns lower and upper limits for the bracketing within a computer wrapper object.
- Return type:
Tuple[ComputerWrapper, ComputerWrapper]