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

Abstract base class for statistic tests. More...

#include <StatisticTest.h>

Inheritance diagram for StatisticTest:
Statistics Anova ChiSquareTest ShapiroWilkTest tTest

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. More...
 
virtual QString logInfo ()
 
virtual void outputResultsTo (Table *)
 
virtual double pValue ()
 
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)
 
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. More...
 
- 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...
 
virtual int dof ()
 Returns the degrees of freedom. 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 Attributes

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

- Protected Member Functions inherited from Statistics
virtual void freeMemory ()
 Frees the memory allocated for the X and Y data sets. More...
 
void memoryErrorMessage ()
 

Detailed Description

Abstract base class for statistic tests.

Member Enumeration Documentation

Enumerator
Left 
Right 
Both 
Enumerator
StudentTest 
NormalityTest 
ChiSquareTest 
AnovaTest 

Constructor & Destructor Documentation

StatisticTest::StatisticTest ( ApplicationWindow parent,
double  testValue = 0.0,
double  level = 0.05,
const QString &  sample = QString() 
)

Member Function Documentation

virtual double StatisticTest::lcl ( double  )
inlinevirtual

Lower Confidence Limit.

Reimplemented in tTest, and ChiSquareTest.

virtual QString StatisticTest::logInfo ( )
inlinevirtual

Reimplemented in Anova, tTest, ShapiroWilkTest, and ChiSquareTest.

References Statistics::logInfo().

void StatisticTest::outputResultsTo ( Table t)
virtual
virtual double StatisticTest::pValue ( )
inlinevirtual

Reimplemented in Anova, tTest, ChiSquareTest, and ShapiroWilkTest.

Referenced by outputResultsTo(), and resultTable().

Table * StatisticTest::resultTable ( const QString &  name = QString())
virtual
void StatisticTest::setSignificanceLevel ( double  s)
inline
void StatisticTest::setTail ( const Tail tail)
inline

References d_tail.

void StatisticTest::setTestValue ( double  val)
inline

References d_test_val.

void StatisticTest::showDescriptiveStatistics ( bool  show = true)
inline
virtual double StatisticTest::statistic ( )
inlinevirtual

Reimplemented in Anova, tTest, ChiSquareTest, and ShapiroWilkTest.

Referenced by outputResultsTo(), and resultTable().

virtual double StatisticTest::ucl ( double  )
inlinevirtual

Upper Confidence Limit.

Reimplemented in tTest, and ChiSquareTest.

References outputResultsTo(), and resultTable().

Member Data Documentation

bool StatisticTest::d_descriptive_statistics
protected
double StatisticTest::d_significance_level
protected
int StatisticTest::d_tail
protected
double StatisticTest::d_test_val
protected

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