Usage
PhyloEntropy(NorP, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE, Ps = NULL, Ns = NULL)
bcPhyloEntropy(Ns, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE)
## S3 method for class 'ProbaVector':
PhyloEntropy(NorP, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE, Ps = NULL, Ns = NULL)
## S3 method for class 'AbdVector':
PhyloEntropy(NorP, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE, Ps = NULL, Ns = NULL)
## S3 method for class 'integer':
PhyloEntropy(NorP, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE, Ps = NULL, Ns = NULL)
## S3 method for class 'numeric':
PhyloEntropy(NorP, q = 1, Tree, Normalize = TRUE, Correction = "Best",
CheckArguments = TRUE, Ps = NULL, Ns = NULL)
is.PhyloEntropy(x)
## S3 method for class 'PhyloEntropy':
summary(object, \dots)
Arguments
Ps
A probability vector, summing to 1.
Ns
A numeric vector containing species abundances.
NorP
A numeric vector, an integer vector, an abundance vector (AbdVector
) or a probability vector (ProbaVector
). Contains either abundances or probabilities q
A number: the order of entropy. Default is 1.
Tree
An object of class hclust
or phylog
. The tree must be ultrametric. Normalize
If TRUE
(default), the Total
entropy returned by the function is normalized by the height of the tree (it is the weighted average value of the entropy in each slice).
If FALSE
, it is the unnormalized weighted sum of
Correction
A string containing one of the possible corrections: "None"
(no correction), "ChaoShen"
, "Grassberger"
, "Holste"
, "Bonachela"
or "Best"
, the default value.
CheckArguments
Logical; if TRUE
, the function arguments are verified. Should be set to FALSE
to save time when the arguments have been checked elsewhere.
x
An object to be tested or plotted
object
A PhyloEntropy
object to be summarized.
...
Additional arguments to be passed to the generic methods.