Find maximum value
which_class(x, levels)
x
numerical, the log-probabilities.
levels
the levels to be returned same length as x.
factor.