4.7.14.1.9. statsmodels.tools.tools.monotone_fn_inverter

statsmodels.tools.tools.monotone_fn_inverter(fn, x, vectorized=True, **keywords)[source]

Given a monotone function x (no checking is done to verify monotonicity) and a set of x values, return an linearly interpolated approximation to its inverse from its values on x.