Calculates the proportion of a particular entry in a vector to the sum of all entries. Use in calculating MAP values of probability parameters in multinomial dirstributions with dirichlet hyperparameters.
index of value
vector of values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.