Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.

  >  Docs Center  >  ENVI API  >  Classification Framework  >  ENVIConfusionMatrix::CommissionError



The method returns the errors of commission from the confusion matrix. The result is an array with one value per class.

Errors of commission represent the fraction of values that were predicted to be in a class but do not belong to that class. They are a measure of false positives. Errors of commission are shown in the rows of the confusion matrix, except for the values along the diagonal.

In the example confusion matrix, the errors of commission are computed as follows:

Asphalt: (4 + 0 + 1 + 4) / 2394 = 0.0038

Concrete: (0 + 0 + 0 + 1) / 333 = 0.0030

Grass: (0 + 1 + 8 + 0) / 917 = 0.0098

Tree: (0 + 0 + 0 + 9) / 1093 = 0.0082

Building: (12 + 0 + 0 + 6) / 2071 = 0.0087


See the following topics for code examples:


Result = ENVIConfusionMatrix.CommissionError([, ERROR=variable])

Return Value

This function method returns the errors of commission from the confusion matrix.




ERROR (optional)

Set this keyword to a named variable that will contain any error message issued during execution of this routine. If no error occurs, the ERROR variable will be set to a null string (''). If an error occurs and the routine is a function, then the function result will be undefined.

When this keyword is not set and an error occurs, ENVI returns to the caller and execution halts. In this case, the error message is contained within !ERROR_STATE and can be caught using IDL's CATCH routine. See IDL Help for more information on !ERROR_STATE and CATCH.

See Manage Errors for more information on error handling in ENVI programming.

Version History

ENVI 5.4


API Version


See Also


© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us