21 #include "ui_ahcadialog.h" 24 AHCADialog::AHCADialog(QWidget *parent, QSharedPointer<VespucciWorkspace> ws, QSharedPointer<AbstractDataAnalyzer> analyzer) :
38 void AHCADialog::on_buttonBox_accepted()
40 QString name = ui->nameLineEdit->text().toLower();
41 QString metric = ui->metricComboBox->currentText().toLower();
42 QString linkage = ui->linkageComboBox->currentText().toLower();
46 analyzer_->AgglomerativeClustering(name, linkage, metric);
48 workspace_->main_window()->DisplayExceptionWarning(e);
53 void AHCADialog::on_linkageComboBox_currentTextChanged(
const QString &arg1)
55 ui->metricComboBox->clear();
56 QStringList metric_list;
58 metric_list = QStringList({
"Squared Euclidean"});
61 metric_list = QStringList({
"Squared Euclidean",
68 ui->metricComboBox->addItems(metric_list);
AHCADialog(QWidget *parent, QSharedPointer< VespucciWorkspace > ws, QSharedPointer< AbstractDataAnalyzer > analyzer)