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