This function allows us to quickly define an alpha
parameter for a Dirichlet distribution with a single (presumably high) peak*scale
value at component i
and all other components a uniform (presumably low) value (1-peak)/(k-1)*scale
.
Arguments
- k
Number of components
- i
Index for the component that takes value
peak
- peak
Value for the single peak component
See also
Other generators:
draw_corpus()
,
journal_specific()
,
rdirichlet()