QtiPlot 0.9.8.2
|
Abstract base class for statistic tests. More...
#include <StatisticTest.h>
Public Types | |
enum | Tail { Left = 0, Right = 1, Both = 2 } |
enum | TestType { StudentTest = 0, NormalityTest = 1, ChiSquareTest = 2, AnovaTest = 3 } |
Public Member Functions | |
virtual double | lcl (double) |
Lower Confidence Limit. | |
virtual QString | logInfo () |
virtual void | outputResultsTo (Table *) |
virtual double | pValue () |
virtual Table * | resultTable (const QString &name=QString()) |
Returns a pointer to the table created to display the results. | |
void | setSignificanceLevel (double s) |
void | setTail (const Tail &tail) |
void | setTestValue (double val) |
void | showDescriptiveStatistics (bool show=true) |
virtual double | statistic () |
StatisticTest (ApplicationWindow *parent, double testValue=0.0, double level=0.05, const QString &sample=QString()) | |
virtual double | ucl (double) |
Upper Confidence Limit. | |
Protected Attributes | |
bool | d_descriptive_statistics |
double | d_significance_level |
int | d_tail |
double | d_test_val |
Abstract base class for statistic tests.
enum StatisticTest::Tail |
StatisticTest::StatisticTest | ( | ApplicationWindow * | parent, |
double | testValue = 0.0 , |
||
double | level = 0.05 , |
||
const QString & | sample = QString() |
||
) |
virtual double StatisticTest::lcl | ( | double | ) | [inline, virtual] |
Lower Confidence Limit.
Reimplemented in ChiSquareTest, and tTest.
virtual QString StatisticTest::logInfo | ( | ) | [inline, virtual] |
Reimplemented in Anova, ChiSquareTest, ShapiroWilkTest, and tTest.
void StatisticTest::outputResultsTo | ( | Table * | t | ) | [virtual] |
Reimplemented in Anova.
References Statistics::d_mean, Statistics::d_n, Statistics::d_sd, Statistics::d_se, Statistics::d_variance, Statistics::dof(), Table::numCols(), Table::numRows(), pValue(), Statistics::sampleName(), Table::setCell(), Table::setColumnType(), Table::setNumCols(), Table::setNumRows(), Table::setText(), statistic(), Table::table(), and Table::Text.
Referenced by StudentTestDialog::outputResults(), and AnovaDialog::outputResults().
virtual double StatisticTest::pValue | ( | ) | [inline, virtual] |
Reimplemented in Anova, ChiSquareTest, ShapiroWilkTest, and tTest.
Referenced by outputResultsTo(), and resultTable().
Table * StatisticTest::resultTable | ( | const QString & | name = QString() | ) | [virtual] |
Returns a pointer to the table created to display the results.
Reimplemented in Anova.
References Statistics::d_mean, Statistics::d_n, Statistics::d_sd, Statistics::d_se, Statistics::d_variance, Statistics::dof(), ApplicationWindow::newTable(), Table::numCols(), pValue(), Statistics::sampleName(), Table::setCell(), Table::setColumnType(), Table::setHeader(), Table::setText(), statistic(), Table::table(), and Table::Text.
Referenced by StudentTestDialog::outputResults(), and AnovaDialog::outputResults().
void StatisticTest::setSignificanceLevel | ( | double | s | ) | [inline] |
References d_significance_level.
Referenced by AnovaDialog::acceptNormalityTest().
void StatisticTest::setTestValue | ( | double | val | ) | [inline] |
References d_test_val.
void StatisticTest::showDescriptiveStatistics | ( | bool | show = true | ) | [inline] |
References d_descriptive_statistics.
virtual double StatisticTest::statistic | ( | ) | [inline, virtual] |
Reimplemented in Anova, ChiSquareTest, ShapiroWilkTest, and tTest.
Referenced by outputResultsTo(), and resultTable().
virtual double StatisticTest::ucl | ( | double | ) | [inline, virtual] |
Upper Confidence Limit.
Reimplemented in ChiSquareTest, and tTest.
bool StatisticTest::d_descriptive_statistics [protected] |
Referenced by tTest::logInfo(), ChiSquareTest::logInfo(), Anova::logInfo(), and showDescriptiveStatistics().
double StatisticTest::d_significance_level [protected] |
Referenced by ShapiroWilkTest::infoString(), tTest::logInfo(), ChiSquareTest::logInfo(), Anova::logInfo(), and setSignificanceLevel().
int StatisticTest::d_tail [protected] |
Referenced by tTest::logInfo(), ChiSquareTest::logInfo(), tTest::power(), tTest::pValue(), ChiSquareTest::pValue(), and setTail().
double StatisticTest::d_test_val [protected] |
Referenced by ChiSquareTest::chiSquare(), tTest::logInfo(), ChiSquareTest::logInfo(), setTestValue(), and tTest::t().