edge
Edge of k-nearest neighbor classifier
Syntax
Description
E = edge(mdl,Tbl,ResponseVarName)mdl with data
                    Tbl and classification
                    Tbl.ResponseVarName. If Tbl contains the
                response variable used to train mdl, then you do not need to
                specify ResponseVarName.
The classification edge (E) is a scalar value that represents
                the mean of the classification margins.
E = edge(___,'Weights',weights)weights,
                using any of the input arguments in the previous syntaxes.
Note
If the predictor data X or the predictor variables in
                                Tbl contain any missing values, the
                                edge function can return NaN. For more
                        details, see edge can return NaN for predictor data with missing values.