7.18.1.1.7. 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.