QtiPlot
0.9.8.2
|
Student's t-Test. More...
#include <tTest.h>
Public Member Functions | |
int | dof () |
Returns the degrees of freedom. More... | |
double | lcl (double confidenceLevel) |
Lower Confidence Limit. More... | |
virtual QString | logInfo () |
double | power (double alpha, int size=0) |
double | pValue () |
bool | setSample1 (const QString &colName) |
bool | setSample2 (const QString &colName, bool paired=false) |
double | statistic () |
double | t () |
tTest (ApplicationWindow *parent, double testValue, double level, const QString &sample1=QString(), const QString &sample2=QString(), bool paired=false) | |
double | ucl (double confidenceLevel) |
Upper Confidence Limit. More... | |
![]() | |
virtual void | outputResultsTo (Table *) |
virtual Table * | resultTable (const QString &name=QString()) |
Returns a pointer to the table created to display the results. More... | |
void | setSignificanceLevel (double s) |
void | setTail (const Tail &tail) |
void | setTestValue (double val) |
void | showDescriptiveStatistics (bool show=true) |
StatisticTest (ApplicationWindow *parent, double testValue=0.0, double level=0.05, const QString &sample=QString()) | |
![]() | |
double * | data () |
Returns the y values of the input data set. More... | |
unsigned int | dataSize () |
Returns the size of the input data set. More... | |
QString | logInfo (bool header=true) |
double | mean () |
virtual bool | run () |
Actually does the job. Should be reimplemented in derived classes. More... | |
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 Member Functions | |
void | freeMemory () |
Frees the memory allocated for the X and Y data sets. More... | |
double | t (int size) |
![]() | |
void | memoryErrorMessage () |
Protected Attributes | |
double | d_diff |
bool | d_independent_test |
double | d_s12 |
Statistics * | d_sample2 |
![]() | |
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. More... | |
double * | d_data |
y data set to be analysed More... | |
double | d_mean |
unsigned int | d_n |
The size of the data set to be analyzed. More... | |
bool | d_result_log |
Flag specifying if the results should be displayed in the results log. More... | |
double | d_sd |
double | d_se |
Table * | d_table |
A table source of data. More... | |
double | d_variance |
Additional Inherited Members | |
![]() | |
enum | Tail { Left = 0, Right = 1, Both = 2 } |
enum | TestType { StudentTest = 0, NormalityTest = 1, ChiSquareTest = 2, AnovaTest = 3 } |
Student's t-Test.
tTest::tTest | ( | ApplicationWindow * | parent, |
double | testValue, | ||
double | level, | ||
const QString & | sample1 = QString() , |
||
const QString & | sample2 = QString() , |
||
bool | paired = false |
||
) |
References setSample2().
|
virtual |
Returns the degrees of freedom.
Reimplemented from Statistics.
References d_independent_test, Statistics::d_n, d_sample2, and Statistics::dataSize().
Referenced by lcl(), logInfo(), power(), pValue(), and ucl().
|
protectedvirtual |
Frees the memory allocated for the X and Y data sets.
Reimplemented from Statistics.
References d_sample2, and Statistics::freeMemory().
|
virtual |
Lower Confidence Limit.
Reimplemented from StatisticTest.
References d_diff, Statistics::d_mean, Statistics::d_n, d_s12, d_sample2, Statistics::d_se, and dof().
|
virtual |
Reimplemented from StatisticTest.
References StatisticTest::Both, ApplicationWindow::d_decimal_digits, StatisticTest::d_descriptive_statistics, d_diff, d_independent_test, d_sample2, StatisticTest::d_significance_level, Statistics::d_table, StatisticTest::d_tail, StatisticTest::d_test_val, dof(), StatisticTest::Left, Statistics::logInfo(), pValue(), StatisticTest::Right, and t().
double tTest::power | ( | double | alpha, |
int | size = 0 |
||
) |
|
virtual |
Reimplemented from StatisticTest.
References StatisticTest::Both, Statistics::d_n, StatisticTest::d_tail, dof(), StatisticTest::Left, StatisticTest::Right, and t().
Referenced by logInfo().
|
inline |
References Statistics::setData().
bool tTest::setSample2 | ( | const QString & | colName, |
bool | paired = false |
||
) |
|
inlinevirtual |
Reimplemented from StatisticTest.
References t().
double tTest::t | ( | ) |
References d_diff, Statistics::d_mean, Statistics::d_n, d_s12, d_sample2, Statistics::d_sd, and StatisticTest::d_test_val.
Referenced by logInfo(), power(), pValue(), and statistic().
|
protected |
References Statistics::d_mean, Statistics::d_sd, and StatisticTest::d_test_val.
|
virtual |
Upper Confidence Limit.
Reimplemented from StatisticTest.
References d_diff, Statistics::d_mean, Statistics::d_n, d_s12, d_sample2, Statistics::d_se, and dof().
|
protected |
Referenced by lcl(), logInfo(), setSample2(), t(), and ucl().
|
protected |
Referenced by dof(), logInfo(), power(), and setSample2().
|
protected |
Referenced by lcl(), setSample2(), t(), and ucl().
|
protected |
Referenced by dof(), freeMemory(), lcl(), logInfo(), power(), setSample2(), t(), and ucl().