NB: In get_uni_rep
, we count the mode starting at 1.
In get_probk_vec
, we count the mode starting at 0.
get_uni_rep(probvec)
A probability vector. It assumes the probabilities are ordered according to the ordering of the discrete set.
A list with the following elements
pivec
The mixing weights for the unimodal representation.
mode
The central value of the unimodal distribution.
get_probk_vec
with option model = "ash"
for the inverse of this function.