Description Usage Arguments Value Examples
get_diversity_from_transition
either computes the individual diversity values
associated to the rows of the input transition
matrix, or the geometric means of
these values, optionally weighting them according to the input mean_distribution
.
This hence allows to compute conditional diversity values associated to a transition
matrix.
1 2 |
transition |
A matrix of floats in [ |
type |
Either |
mean_distribution |
(optional, only when |
order |
A vector of positive floats (possibly including |
measure |
A vector of strings giving the names of the diversity measures to compute.
Possible values are |
A matrix (or a vector) of positive floats giving the individual diversity values
(or their geometric mean) of the row of the input transition
matrix.
1 2 3 4 5 | transition <- matrix (c (1/3, 1/3, 1/3, 0.9, 0.1, 0), nrow=2, ncol=3, byrow=TRUE)
get_diversity_from_transition (transition, type='individual', order=c(0,Inf), measure='entropy')
get_diversity_from_transition (transition, type='mean')
get_diversity_from_transition (transition, type='mean', mean_distribution=c(1/4,3/4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.