Classify observations according to the maximum a posterior probabilites.

classify(x, theta)

## Arguments

x |
Either a `matrix` of A) observations where rows corresponds to
obsercations and columns to dimensions or B) class probabilities where rows
correspond to obsevations and columns to components. |

theta |
A list of parameters for the full model as described in
`rtheta` . If `theta` is supplied, `x` are assumed to
be observations (A). If `theta` is missing, `x` are assumed to be
probabilites (B). |

## Value

A integer vector of class numbers with length equal to the number of
rows in `x`

.

## See also

## Examples

#> [1] 3 1 3 3 1 3 3 3 1 1 1 3 1 2 2 3 1 3 3 2 2 1 2 3 3

#> [1] 3 2 2 3 2 2 2 1 2 3 3 2 2 3 2 3 3 1 2 2