Vespucci  1.0.0
statsdialog.h
Go to the documentation of this file.
1 #ifndef STATSDIALOG_H
2 #define STATSDIALOG_H
3 
4 #include <QDockWidget>
6 class MainWindow;
7 namespace Ui {
8 class StatsDialog;
9 }
10 
11 class StatsDialog : public QDialog
12 {
13  Q_OBJECT
14 
15 public:
16  StatsDialog(MainWindow *parent, QSharedPointer<VespucciWorkspace> ws);
17  ~StatsDialog();
18 signals:
19  void SetActionChecked(bool checked);
20 protected:
21  void showEvent(QShowEvent *ev);
22  void closeEvent(QCloseEvent *ev);
23 
24 public slots:
25  void MatrixSelectionChanged(QStringList matrix_keys);
26  void MatrixToBeRemoved(QStringList matrix_keys);
27  void DatasetToBeRemoved(QString name);
28 
29 private slots:
30  void on_calculatePushButton_clicked();
31 
32 private:
33  void ClearFields();
34  double CalculateMedian();
35  double CalculateStdDev();
36  double CalculateMean();
37  void GenerateHistogram();
38  void UpdateDisplayData();
39  void CalculateCI();
40  Ui::StatsDialog *ui;
41  QStringList data_keys_;
42  QSharedPointer<VespucciWorkspace> workspace_;
43 };
44 
45 #endif // STATSDIALOG_H
VESPUCCI_EXPORT arma::uvec GenerateHistogram(const arma::mat &data, arma::vec &edges, uint bins=0)
Definition: histogram.cpp:21
Definition: ahcadialog.h:26
The MainWindow class The main window of the program, this is where the user performs most operations...
Definition: mainwindow.h:58