Companion

object Companion

Functions

Link copied to clipboard

Computes Beta(z1,z2)

Link copied to clipboard

Computes the incomplete beta function at the supplied x Beta(x, a, b)/Beta(a, b)

Link copied to clipboard

The natural logarithm of Beta(z1,z2)

Link copied to clipboard
fun regularizedIncompleteBetaFunction(x: Double, a: Double, b: Double, lnbeta: Double = logBetaFunction(a, b)): Double

Computes the regularized incomplete beta function at the supplied x

Link copied to clipboard
fun stdBetaCDF(x: Double, alpha1: Double, alpha2: Double, lnBetaA1A2: Double = logBetaFunction(alpha1, alpha2)): Double

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

Link copied to clipboard
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