mvgamma: Multivariate gamma function

Description Usage Arguments Value Note Author(s)

View source: R/math__mvgamma.R

Description

The multivariate gamma function is computed by using it's recursive definition or product form. Use apply() on top of the mvgamma function if p is also a vector.

Usage

1
mvgamma(p, x, log = TRUE)

Arguments

p

"integer". The dimension of the multivariate gamma function.

x

"vector" A vector or sclor can be used. See also gamma() function.

log

"logical" If TRUE, logarithm of multivariate gamma function will be returned.

Value

Same length as "x" has.

Note

Initial: Mon Sep 20 23:54:20 CEST 2010; Current: Tue Jan 15 18:56:48 CET 2013.

TODO: Allow p be a vector of same length of x

Author(s)

Feng Li, Department of Statistics, Stockholm University, Sweden.


feng-li/flutils documentation built on Oct. 1, 2020, 9:09 p.m.