Find Maximum Position in Matrix

DESCRIPTION:

Find the maximum position for each row of a matrix, breaking ties at random.

USAGE:

max.col(A)

REQUIRED ARGUMENTS:

A
a matrix

VALUE:

index of a maximal value for each row.

DETAILS:

Ties are broken at random. The determination of `tie' assumes that the entries are probabilities.