This function draws a full species name for a given tree within the vector alphaV using a Categorical-Dirichlet scheme.
Arguments
- 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)
Details
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