This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: ClassificationDiscriminant

Classification edge by resubstitution


edge = resubEdge(obj)


edge = resubEdge(obj) returns the classification edge obtained by obj on its training data.

Input Arguments


Discriminant analysis classifier, produced using fitcdiscr.

Output Arguments


Classification edge obtained by resubstituting the training data into the calculation of edge.


expand all

Estimate the quality of a discriminant analysis classifier for Fisher's iris data by resubstitution.

Load Fisher's iris data set.

load fisheriris

Train a discriminant analysis classifier.

Mdl = fitcdiscr(meas,species);

Compute the resubstitution edge.

redge = resubEdge(Mdl)
redge = 0.9454

More About

expand all