QtiPlot 0.9.8.2
Public Member Functions | Protected Member Functions | Protected Attributes
Statistics Class Reference

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

#include <Statistics.h>

Inheritance diagram for Statistics:
StatisticTest Anova ChiSquareTest ShapiroWilkTest tTest

List of all members.

Public Member Functions

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

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

Protected Attributes

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
Tabled_table
 A table source of data.
double d_variance

Detailed Description

Abstract base class for data analysis operations.


Constructor & Destructor Documentation

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

References setData().

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

Statistics::~Statistics ( )

References freeMemory().


Member Function Documentation

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().

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().

virtual int Statistics::dof ( ) [inline, virtual]
void Statistics::freeMemory ( ) [protected, virtual]

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

Reimplemented in Anova, and tTest.

References d_data, and d_n.

Referenced by setData(), ShapiroWilkTest::ShapiroWilkTest(), and ~Statistics().

QString Statistics::logInfo ( bool  header = true)
double Statistics::mean ( ) [inline]

References d_mean.

Referenced by tTest::setSample2().

void Statistics::memoryErrorMessage ( ) [protected]
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().

QString Statistics::sampleName ( ) [inline]
bool Statistics::setData ( const QString &  colName)
void Statistics::showResultsLog ( bool  show = true) [inline]

References d_result_log.

double Statistics::standardDeviation ( ) [inline]

References d_sd.

Referenced by tTest::setSample2().

double Statistics::standardError ( ) [inline]

References d_se.

double Statistics::variance ( ) [inline]

References d_variance.


Member Data Documentation

QString Statistics::d_col_name [protected]

The name of the source data set.

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

double* Statistics::d_data [protected]
double Statistics::d_mean [protected]
unsigned int Statistics::d_n [protected]
bool Statistics::d_result_log [protected]

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

Referenced by run(), and showResultsLog().

double Statistics::d_sd [protected]
double Statistics::d_se [protected]
Table* Statistics::d_table [protected]
double Statistics::d_variance [protected]

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