calculate.dprob: Calculate dirichlet probability

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

i

index of value

v

vector of values

Value

v[i]/sum(v)


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.