QtiPlot  0.9.8.2
StudentTestDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : StudentTestDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Student's t-Test dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef StudentTestDialog_H
30 #define StudentTestDialog_H
31 
32 #include <QDialog>
33 #include <StatisticTest.h>
34 
35 class QGroupBox;
36 class QComboBox;
37 class QCheckBox;
38 class QLabel;
39 class QLineEdit;
40 class QPushButton;
41 class QRadioButton;
42 class QSpinBox;
43 class DoubleSpinBox;
44 class Table;
45 class Note;
46 class CollapsiveGroupBox;
47 
49 class StudentTestDialog : public QDialog
50 {
51  Q_OBJECT
52 
53 public:
54  StudentTestDialog(const StatisticTest::TestType& type, Table *t, bool twoSamples = false, QWidget* parent = 0);
55 
56 private slots:
57  void accept();
58  void updateMeanLabels(double);
59  void updateMeanLabel();
60  void addConfidenceLevel();
62 
63 private:
64  void closeEvent(QCloseEvent*);
65  void acceptStudentTest();
66  void acceptChiSquareTest();
67  void outputResults(StatisticTest* stats, const QString& s);
68 
71 
72  QComboBox *boxSample1;
73  QComboBox *boxSample2;
74  QRadioButton *bothTailButton;
75  QRadioButton *leftTailButton;
76  QRadioButton *rightTailButton;
77  QLabel *meanLabel;
78  QLabel *bothTailLabel;
79  QLabel *leftTailLabel;
80  QLabel *rightTailLabel;
82  QPushButton* buttonAddLevel;
83  QPushButton* buttonOk;
85  QSpinBox *boxSampleSize;
86  QCheckBox *boxOtherSampleSize;
90 
91  QRadioButton *independentTestBtn;
92  QRadioButton *pairedTestBtn;
93 
95  QCheckBox *boxResultsTable;
96  QLineEdit *tableNameLineEdit;
97  QCheckBox *boxResultsLog;
98  QCheckBox *boxNoteWindow;
99  QLineEdit *noteNameLineEdit;
100  QCheckBox *showStatisticsBox;
101 
104 };
105 
106 #endif
QRadioButton * bothTailButton
Definition: StudentTestDialog.h:74
A collapsive QGroupBox.
Definition: CollapsiveGroupBox.h:39
QCheckBox * showStatisticsBox
Definition: StudentTestDialog.h:100
void acceptStudentTest()
Definition: StudentTestDialog.cpp:321
Notes window class.
Definition: Note.h:43
StatisticTest::TestType d_test_type
Definition: StudentTestDialog.h:69
void updateMeanLabels(double)
Definition: StudentTestDialog.cpp:304
QSpinBox * boxSampleSize
Definition: StudentTestDialog.h:85
QRadioButton * independentTestBtn
Definition: StudentTestDialog.h:91
Note * d_note
Definition: StudentTestDialog.h:103
QRadioButton * rightTailButton
Definition: StudentTestDialog.h:76
void accept()
Definition: StudentTestDialog.cpp:313
TestType
Definition: StatisticTest.h:43
void closeEvent(QCloseEvent *)
Definition: StudentTestDialog.cpp:486
QCheckBox * boxResultsLog
Definition: StudentTestDialog.h:97
QComboBox * boxSample1
Definition: StudentTestDialog.h:72
QLabel * meanLabel
Definition: StudentTestDialog.h:77
CollapsiveGroupBox * boxPowerAnalysis
Definition: StudentTestDialog.h:84
QLabel * leftTailLabel
Definition: StudentTestDialog.h:79
QComboBox * boxSample2
Definition: StudentTestDialog.h:73
QCheckBox * boxResultsTable
Definition: StudentTestDialog.h:95
QRadioButton * leftTailButton
Definition: StudentTestDialog.h:75
QPushButton * buttonOk
Definition: StudentTestDialog.h:83
QRadioButton * pairedTestBtn
Definition: StudentTestDialog.h:92
void updateMeanLabel()
Definition: StudentTestDialog.cpp:286
void addConfidenceLevel()
Definition: StudentTestDialog.cpp:268
QLineEdit * tableNameLineEdit
Definition: StudentTestDialog.h:96
QPushButton * buttonAddLevel
Definition: StudentTestDialog.h:82
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
CollapsiveGroupBox * outputSettingsBox
Definition: StudentTestDialog.h:94
bool d_two_samples
Definition: StudentTestDialog.h:70
void acceptChiSquareTest()
Definition: StudentTestDialog.cpp:388
QCheckBox * boxNoteWindow
Definition: StudentTestDialog.h:98
StudentTestDialog(const StatisticTest::TestType &type, Table *t, bool twoSamples=false, QWidget *parent=0)
Definition: StudentTestDialog.cpp:46
void outputResults(StatisticTest *stats, const QString &s)
Definition: StudentTestDialog.cpp:433
QCheckBox * boxOtherSampleSize
Definition: StudentTestDialog.h:86
void enableDescriptiveStatistics()
Definition: StudentTestDialog.cpp:263
Table * d_table
Definition: StudentTestDialog.h:102
DoubleSpinBox * boxSignificance
Definition: StudentTestDialog.h:88
QLabel * bothTailLabel
Definition: StudentTestDialog.h:78
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
Abstract base class for statistic tests.
Definition: StatisticTest.h:37
DoubleSpinBox * boxPowerLevel
Definition: StudentTestDialog.h:89
DoubleSpinBox * boxMean
Definition: StudentTestDialog.h:87
QLineEdit * noteNameLineEdit
Definition: StudentTestDialog.h:99
CollapsiveGroupBox * boxConfidenceInterval
Definition: StudentTestDialog.h:81
Filter options dialog.
Definition: StudentTestDialog.h:49
QLabel * rightTailLabel
Definition: StudentTestDialog.h:80