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. | |
![]() | |
double * | data () |
Returns the y values of the input data set. | |
unsigned int | dataSize () |
Returns the size of the input data set. | |
virtual int | dof () |
Returns the degrees of freedom. | |
QString | logInfo (bool header=true) |
double | mean () |
virtual bool | run () |
Actually does the job. Should be reimplemented in derived classes. | |
QString | sampleName () |
bool | setData (const QString &) |
void | showResultsLog (bool show=true) |
double | standardDeviation () |
double | standardError () |
Statistics (ApplicationWindow *parent, const QString &name=QString()) | |
double | variance () |
~Statistics () |
Protected Attributes | |
bool | d_descriptive_statistics |
double | d_significance_level |
int | d_tail |
double | d_test_val |
![]() | |
QString | d_col_name |
The name of the source data set. | |
double * | d_data |
y data set to be analysed | |
double | d_mean |
unsigned int | d_n |
The size of the data set to be analyzed. | |
bool | d_result_log |
Flag specifying if the results should be displayed in the results log. | |
double | d_sd |
double | d_se |
Table * | d_table |
A table source of data. | |
double | d_variance |
Additional Inherited Members | |
![]() | |
virtual void | freeMemory () |
Frees the memory allocated for the X and Y data sets. | |
void | memoryErrorMessage () |
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() |
||
) |
|
inlinevirtual |
Lower Confidence Limit.
Reimplemented in tTest, and ChiSquareTest.
|
inlinevirtual |
Reimplemented in Anova, tTest, ShapiroWilkTest, and ChiSquareTest.
|
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().
|
inlinevirtual |
Reimplemented in Anova, tTest, ChiSquareTest, and ShapiroWilkTest.
Referenced by outputResultsTo(), and resultTable().
|
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().
|
inline |
References d_significance_level.
Referenced by AnovaDialog::acceptNormalityTest().
|
inline |
References d_test_val.
|
inline |
References d_descriptive_statistics.
|
inlinevirtual |
Reimplemented in Anova, tTest, ChiSquareTest, and ShapiroWilkTest.
Referenced by outputResultsTo(), and resultTable().
|
inlinevirtual |
Upper Confidence Limit.
Reimplemented in tTest, and ChiSquareTest.
|
protected |
Referenced by ChiSquareTest::logInfo(), tTest::logInfo(), Anova::logInfo(), and showDescriptiveStatistics().
|
protected |
Referenced by ShapiroWilkTest::infoString(), ChiSquareTest::logInfo(), tTest::logInfo(), Anova::logInfo(), and setSignificanceLevel().
|
protected |
Referenced by ChiSquareTest::logInfo(), tTest::logInfo(), tTest::power(), ChiSquareTest::pValue(), tTest::pValue(), and setTail().
|
protected |
Referenced by ChiSquareTest::chiSquare(), ChiSquareTest::logInfo(), tTest::logInfo(), setTestValue(), and tTest::t().