Inverse function
This function is used to get the inverse of a monotonic function on (0,1), depending on parameters, and using the bisection method
invfunc(q, func, th, lb = 1e-12, ub = 1 - 1e-12, tol = 1e-08, nbreak = 40)
q
: Function value (can be a vector if func() supports a vector argument)func
: Function of one argument to be invertedth
: Function parameterslb
: Lower bound for the possible valuesub
: Upper bound for the possible valuestol
: Tolerance for the inversionnbreak
: Maximum number of iterations (default is 40)Pavel Krupskii
Useful links