smpl.stat.get_interesting_domain

smpl.stat.get_interesting_domain(f, min_ch=1e-06)[source]

Return interesting xmin and xmax of function f.

Examples

>>> def f(x):
...     return np.sin(x)
>>> get_interesting_domain(f)
(-3.141625000000003, 3.141625000000003)