

   BBaayyeess ccllaassssiiffiieerr

        bayesclass(z)

   AArrgguummeennttss::

          z: An object of class `"mlbench"'.

   DDeessccrriippttiioonn::

        Returns the decision of the (optimal) Bayes classifier
        for a given data set. This is a generic function, i.e.,
        there are different methods for the various mlbench
        problems.

        If the classes of the problem do not overlap, then the
        Bayes decision is identical to the true classification,
        which is implemented as the dummy function
        `bayesclass.noerr' (which simply returns `z$classes'
        and is used for all problems with disjunct classes).

   EExxaammpplleess::

        # 6 overlapping classes
        p <- mlbench.2dnormals(500,6)
        plot(p)

        plot(p$x, col=bayesclass(p))

