DirichCat | R Documentation |
This function draws a full species name for a given tree within the vector alphaV using a Categorical-Dirichlet scheme.
DirichCat(alphaV, Names, Vern)
alphaV |
vector alphaV obtained in the DrawBota function (posterior alpha for the given vernacular name, with all botanical name of Alpha) |
Names |
vector of all botanical name of Alpha |
Vern |
the vernacular name of the tree for which we want to get a full botanical name (character) |
This function performs the following steps:
draw one vector in a Dirichlet distribution of shape parameters Vect
draw one value in a Categorical distribution of parameter p the vector obtained from the Dirichlet (i.e draw one botanical name one time with the probability being the vector obtained from the Dirichlet)
retrieve the botanical name corresponding to the non null value in this vector
A botanical name obtained from a Dirichlet-Categorical association.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.