View source: R/eval_quantile_from_cdf.R
directional_inverse | R Documentation |
Calculates the smallest value for which a function f
evaluates to be greater than or equal to y
– that is,
the left inverse of f
at y
. Intended for internal use only.
directional_inverse(distribution, p, low, high, tol, maxiter, direction)
distribution |
A distribution having access to a cdf. |
p |
Single value for which to calculate the left inverse. |
low , high |
Single numeric values forming a range within which to search for the solution. |
tol , maxiter |
Tolerance (a small positive number) and maximum number of iterations |
direction |
One of |
This algorithm works by progressively cutting the specified range in half, so that the width of the range after k iterations is 1/2^k times the original width.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.