QtiPlot  0.9.8.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tTest Class Reference

Student's t-Test. More...

#include <tTest.h>

Inheritance diagram for tTest:
StatisticTest Statistics

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...
 
- Public Member Functions inherited from StatisticTest
virtual void outputResultsTo (Table *)
 
virtual TableresultTable (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())
 
- Public Member Functions inherited from Statistics
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)
 
- Protected Member Functions inherited from Statistics
void memoryErrorMessage ()
 

Protected Attributes

double d_diff
 
bool d_independent_test
 
double d_s12
 
Statisticsd_sample2
 
- Protected Attributes inherited from StatisticTest
bool d_descriptive_statistics
 
double d_significance_level
 
int d_tail
 
double d_test_val
 
- Protected Attributes inherited from Statistics
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
 
Tabled_table
 A table source of data. More...
 
double d_variance
 

Additional Inherited Members

- Public Types inherited from StatisticTest
enum  Tail { Left = 0, Right = 1, Both = 2 }
 
enum  TestType { StudentTest = 0, NormalityTest = 1, ChiSquareTest = 2, AnovaTest = 3 }
 

Detailed Description

Student's t-Test.

Constructor & Destructor Documentation

tTest::tTest ( ApplicationWindow parent,
double  testValue,
double  level,
const QString &  sample1 = QString(),
const QString &  sample2 = QString(),
bool  paired = false 
)

References setSample2().

Member Function Documentation

int tTest::dof ( )
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().

void tTest::freeMemory ( )
protectedvirtual

Frees the memory allocated for the X and Y data sets.

Reimplemented from Statistics.

References d_sample2, and Statistics::freeMemory().

double tTest::lcl ( double  confidenceLevel)
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().

QString tTest::logInfo ( )
virtual
double tTest::power ( double  alpha,
int  size = 0 
)
double tTest::pValue ( )
virtual
bool tTest::setSample1 ( const QString &  colName)
inline

References Statistics::setData().

bool tTest::setSample2 ( const QString &  colName,
bool  paired = false 
)
double tTest::statistic ( )
inlinevirtual

Reimplemented from StatisticTest.

References t().

double tTest::t ( )
double tTest::t ( int  size)
protected
double tTest::ucl ( double  confidenceLevel)
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().

Member Data Documentation

double tTest::d_diff
protected

Referenced by lcl(), logInfo(), setSample2(), t(), and ucl().

bool tTest::d_independent_test
protected

Referenced by dof(), logInfo(), power(), and setSample2().

double tTest::d_s12
protected

Referenced by lcl(), setSample2(), t(), and ucl().

Statistics* tTest::d_sample2
protected

The documentation for this class was generated from the following files: