R/GammaDiversity.R

Defines functions GammaDiversity

Documented in GammaDiversity

GammaDiversity <-
function(MC, q = 1, Correction = "Best", Tree = NULL, Normalize = TRUE, Z = NULL, CheckArguments = TRUE) 
{
  if (CheckArguments) 
    CheckentropartArguments()
  
  ppTree <- Preprocess.Tree(Tree)
  if (Normalize) {
    Height <- 1
  } else {
    Height <- ppTree$Height
  }  
  GammaEntropy <- GammaEntropy(MC, q, Correction, ppTree, Z, Normalize=TRUE, CheckArguments=FALSE)
  
  return(expq(GammaEntropy, q) * Height)  
}
EricMarcon/entropart documentation built on Feb. 3, 2025, 1:35 a.m.