use vector indices as category names instead of hard-coded strings, to allow for a distribution to be defined solely by a vector of weights