BicopBase.hinv2

BicopBase.hinv2(u, x=None)

Numerically invert hfunc2() in its first argument.

Solves hfunc2([., u2], x) = u1 for the first argument by bisection (solve_increasing), since hfunc2 is increasing in it.

Parameters:
uarray, shape (n, 2), dtype float

Column 0 is the level to invert; column 1 is the conditioning value u2.

xarray, shape (n, k), or None, optional

Conditioning variables forwarded to hfunc2().

Returns:
array, shape (n,), dtype float

The inverted values in [0, 1].