21 #include "ui_dimensionalityestimationdialog.h" 29 matrix_keys_ = matrix_keys;
30 workspace_ = workspace;
38 void DimensionalityEstimationDialog::on_buttonBox_accepted()
43 arma::mat matrix = workspace_->GetMatrix(matrix_keys_);
44 QSharedPointer<VespucciDataset> parent_dataset = workspace_->GetDataset(matrix_keys_.first());
45 if (ui->methodComboBox->currentText() ==
"SVD")
46 rank = arma::rank(matrix);
47 else if (ui->methodComboBox->currentText() ==
"HySime"){
49 parent_dataset->AddAuxiliaryMatrix(matrix_keys_.last() +
" HySime subspace", subspace);
52 workspace_->main_window()->DisplayWarning(
"Error",
"Invalid type!");
55 arma::vec rank_mat({double(rank)});
56 parent_dataset->AddAuxiliaryMatrix(matrix_keys_.last() +
" Estimated Rank", rank_mat);
57 }
catch(std::exception e){
58 workspace_->main_window()->DisplayExceptionWarning(e);
VESPUCCI_EXPORT size_t HySime(const arma::mat &y, const arma::mat &n, arma::mat &Rn, arma::mat &Ek)
Vespucci::Math::DimensionReduction::HySime.
DimensionalityEstimationDialog(QWidget *parent, QSharedPointer< VespucciWorkspace > workspace, const QStringList &matrix_keys)
~DimensionalityEstimationDialog()