AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
|
The ConfusionMatrixWidget class provides a custom QWidget to display a confusion matrix. More...
#include <ConfusionMatrixWidget.h>
Public Member Functions | |
ConfusionMatrixWidget (QWidget *parent=nullptr) | |
Construct a new Confusion Matrix Widget object. | |
void | populateMatrix (QMap< QString, QMap< QString, int > > &confusionMatrixCounts) |
Populate the confusion matrix with data. | |
The ConfusionMatrixWidget class provides a custom QWidget to display a confusion matrix.
This widget uses a QTableWidget to visually represent a confusion matrix.
|
explicit |
Construct a new Confusion Matrix Widget object.
parent | The parent QWidget. Default is nullptr. |
void ConfusionMatrixWidget::populateMatrix | ( | QMap< QString, QMap< QString, int > > & | confusionMatrixCounts | ) |
Populate the confusion matrix with data.
This function populates the confusion matrix based on the provided confusion matrix counts.
confusionMatrixCounts | A map where the key is the actual class, and the value is another map. The inner map's key is the predicted class, and its value is the count of instances. |