QtiPlot
0.9.8.2
|
00001 /*************************************************************************** 00002 File : StudentTestDialog.h 00003 Project : QtiPlot 00004 -------------------------------------------------------------------- 00005 Copyright : (C) 2010 by Ion Vasilief 00006 Email (use @ for *) : ion_vasilief*yahoo.fr 00007 Description : Student's t-Test dialog 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 * This program is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00021 * GNU General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU General Public License * 00024 * along with this program; if not, write to the Free Software * 00025 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00026 * Boston, MA 02110-1301 USA * 00027 * * 00028 ***************************************************************************/ 00029 #ifndef StudentTestDialog_H 00030 #define StudentTestDialog_H 00031 00032 #include <QDialog> 00033 #include <StatisticTest.h> 00034 00035 class QGroupBox; 00036 class QComboBox; 00037 class QCheckBox; 00038 class QLabel; 00039 class QLineEdit; 00040 class QPushButton; 00041 class QRadioButton; 00042 class QSpinBox; 00043 class DoubleSpinBox; 00044 class Table; 00045 class Note; 00046 class CollapsiveGroupBox; 00047 00049 class StudentTestDialog : public QDialog 00050 { 00051 Q_OBJECT 00052 00053 public: 00054 StudentTestDialog(const StatisticTest::TestType& type, Table *t, bool twoSamples = false, QWidget* parent = 0); 00055 00056 private slots: 00057 void accept(); 00058 void updateMeanLabels(double); 00059 void updateMeanLabel(); 00060 void addConfidenceLevel(); 00061 void enableDescriptiveStatistics(); 00062 00063 private: 00064 void closeEvent(QCloseEvent*); 00065 void acceptStudentTest(); 00066 void acceptChiSquareTest(); 00067 void outputResults(StatisticTest* stats, const QString& s); 00068 00069 StatisticTest::TestType d_test_type; 00070 bool d_two_samples; 00071 00072 QComboBox *boxSample1; 00073 QComboBox *boxSample2; 00074 QRadioButton *bothTailButton; 00075 QRadioButton *leftTailButton; 00076 QRadioButton *rightTailButton; 00077 QLabel *meanLabel; 00078 QLabel *bothTailLabel; 00079 QLabel *leftTailLabel; 00080 QLabel *rightTailLabel; 00081 CollapsiveGroupBox *boxConfidenceInterval; 00082 QPushButton* buttonAddLevel; 00083 QPushButton* buttonOk; 00084 CollapsiveGroupBox *boxPowerAnalysis; 00085 QSpinBox *boxSampleSize; 00086 QCheckBox *boxOtherSampleSize; 00087 DoubleSpinBox* boxMean; 00088 DoubleSpinBox* boxSignificance; 00089 DoubleSpinBox* boxPowerLevel; 00090 00091 QRadioButton *independentTestBtn; 00092 QRadioButton *pairedTestBtn; 00093 00094 CollapsiveGroupBox *outputSettingsBox; 00095 QCheckBox *boxResultsTable; 00096 QLineEdit *tableNameLineEdit; 00097 QCheckBox *boxResultsLog; 00098 QCheckBox *boxNoteWindow; 00099 QLineEdit *noteNameLineEdit; 00100 QCheckBox *showStatisticsBox; 00101 00102 Table *d_table; 00103 Note *d_note; 00104 }; 00105 00106 #endif