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

Abstract base class for data analysis operations. More...

#include <Statistics.h>

Inheritance diagram for Statistics:
StatisticTest Anova ChiSquareTest ShapiroWilkTest tTest

Public Member Functions

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 Member Functions

virtual void freeMemory ()
 Frees the memory allocated for the X and Y data sets. More...
 
void memoryErrorMessage ()
 

Protected Attributes

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
 

Detailed Description

Abstract base class for data analysis operations.

Constructor & Destructor Documentation

◆ Statistics()

Statistics::Statistics ( ApplicationWindow parent,
const QString &  name = QString() 
)

References setData().

Referenced by Anova::addSample(), and tTest::setSample2().

◆ ~Statistics()

Statistics::~Statistics ( )

References freeMemory().

Member Function Documentation

◆ data()

double* Statistics::data ( )
inline

Returns the y values of the input data set.

References d_data.

Referenced by Anova::oneWayANOVA(), tTest::setSample2(), and Anova::twoWayANOVA().

◆ dataSize()

unsigned int Statistics::dataSize ( )
inline

Returns the size of the input data set.

References d_n.

Referenced by AnovaDialog::acceptNormalityTest(), Anova::addSample(), tTest::dof(), Anova::oneWayANOVA(), tTest::setSample2(), and Anova::twoWayANOVA().

◆ dof()

virtual int Statistics::dof ( )
inlinevirtual

◆ freeMemory()

void Statistics::freeMemory ( )
protectedvirtual

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

Reimplemented in Anova, and tTest.

References d_data, and d_n.

Referenced by tTest::freeMemory(), Anova::freeMemory(), setData(), ShapiroWilkTest::ShapiroWilkTest(), standardError(), and ~Statistics().

◆ logInfo()

QString Statistics::logInfo ( bool  header = true)

◆ mean()

double Statistics::mean ( )
inline

References d_mean.

Referenced by tTest::setSample2().

◆ memoryErrorMessage()

void Statistics::memoryErrorMessage ( )
protected

◆ run()

bool Statistics::run ( )
virtual

Actually does the job. Should be reimplemented in derived classes.

Reimplemented in Anova.

References d_n, d_result_log, and logInfo().

◆ sampleName()

QString Statistics::sampleName ( )
inline

◆ setData()

bool Statistics::setData ( const QString &  colName)

◆ showResultsLog()

void Statistics::showResultsLog ( bool  show = true)
inline

References d_result_log.

◆ standardDeviation()

double Statistics::standardDeviation ( )
inline

References d_sd.

Referenced by tTest::setSample2().

◆ standardError()

double Statistics::standardError ( )
inline

◆ variance()

double Statistics::variance ( )
inline

References d_variance.

Member Data Documentation

◆ d_col_name

QString Statistics::d_col_name
protected

The name of the source data set.

Referenced by ShapiroWilkTest::infoString(), logInfo(), sampleName(), and setData().

◆ d_data

double* Statistics::d_data
protected

◆ d_mean

double Statistics::d_mean
protected

◆ d_n

unsigned int Statistics::d_n
protected

◆ d_result_log

bool Statistics::d_result_log
protected

Flag specifying if the results should be displayed in the results log.

Referenced by run(), and showResultsLog().

◆ d_sd

double Statistics::d_sd
protected

◆ d_se

double Statistics::d_se
protected

◆ d_table

Table* Statistics::d_table
protected

◆ d_variance

double Statistics::d_variance
protected

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