gwinferno.preprocess.conversions.alpha_beta_from_mu_var#

alpha_beta_from_mu_var(mu, var, xmax=1)[source]#

Convert desired mean and variance to α, β shape parameters of the Beta distribution.

Parameters:
meanarray_like

Desired mean.

vararray_like

Desired variance.

xmaxarray_like, default=1

Maximum value with support.

Returns:
array_like, array_like

Tuple of arrays with shape matching inputs that represent the α, β shape parameters corresponding to the desired means and variances.