Skip to main content

builtin_lgamma

Function builtin_lgamma 

Source
fn builtin_lgamma(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Natural logarithm of the absolute value of the gamma function.

More numerically stable than log(abs(gamma(x))) for large x.

@param x numeric vector @return numeric vector of log-gamma values