stdBetaInvCDF

fun stdBetaInvCDF(p: Double, alpha: Double, beta: Double, lnBetaA1A2: Double = logBetaFunction(alpha, beta), initialX: Double = approximateInvCDF(alpha, beta, p, lnBetaA1A2), searchDelta: Double = delta): Double

Computes the CDF of the standard beta distribution, has accuracy to about 10e-9

Parameters

p

the probability that needs to be evaluated

alpha

the first shape parameter, must be greater than 0

beta

the second shape parameter, must be greater than 0

lnBetaA1A2

the logBetaFunction(alpha1, alpha2)

initialX

an initial approximation for the returned value x

searchDelta

the suggested delta around the initial approximation