You are here: Start » AVL.NET » Function Reference » Data Classification » Statistics » AVL.TableOfConfusion_Histograms

AVL.TableOfConfusion_Histograms

Computes confusion matrix based on two histograms and threshold value.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TableOfConfusion_Histograms
(
	AvlNet.Histogram inPositiveValues,
	AvlNet.Histogram inNegativeValues,
	float inThreshold,
	AvlNet.ConfusionTable outConfusionTable
)

Parameters

Name Type Range Default Description
inPositiveValuesAvlNet.HistogramPixels values under binary classification mask.
inNegativeValuesAvlNet.HistogramPixels values not covered by mask.
inThresholdfloat128.0fDefault value: 128.0f.
outConfusionTableAvlNet.ConfusionTable

Errors

List of possible exceptions:

Error type Description
DomainError Histogram inNegativeValues is empty in TableOfConfusion_Histograms.
DomainError Histogram inPositiveValues is empty in TableOfConfusion_Histograms.
DomainError Histograms inPositiveValues and inNegativeValues has different domain in TableOfConfusion_Histograms.
DomainError inThreshold is larger than domain end in TableOfConfusion_Histograms.
DomainError inThreshold is smaller than domain start in TableOfConfusion_Histograms.

See also