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