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

ANOVA. More...

#include <Anova.h>

Inheritance diagram for Anova:
StatisticTest Statistics

Public Member Functions

bool addSample (const QString &colName, int aLevel=1, int bLevel=1)
 
 Anova (ApplicationWindow *parent, bool twoWay=false, double level=0.05)
 
virtual QString logInfo ()
 
double mse ()
 
virtual void outputResultsTo (Table *)
 
virtual TableresultTable (const QString &name=QString())
 Returns a pointer to the table created to display the results. More...
 
bool run ()
 Actually does the job. Should be reimplemented in derived classes. More...
 
void setAnovaTwoWayModel (int type)
 
void showAnovaTwoWayInteractions (bool show=true)
 
double sse ()
 
double sst ()
 
One-Way ANOVA results
double fStat ()
 
double statistic ()
 
double pValue ()
 
double ssm ()
 
Two-Way ANOVA results
double fStatA ()
 
double fStatB ()
 
double fStatAB ()
 
double pValueA ()
 
double pValueB ()
 
double pValueAB ()
 
double ssa ()
 
double ssb ()
 
double ssab ()
 
double msa ()
 
double msb ()
 
double msab ()
 
- Public Member Functions inherited from StatisticTest
virtual double lcl (double)
 Lower Confidence Limit. 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())
 
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 ()
 
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...
 
QString levelName (int level, bool b=false)
 
bool oneWayANOVA ()
 
bool twoWayANOVA ()
 
- Protected Member Functions inherited from Statistics
void memoryErrorMessage ()
 

Protected Attributes

gsl_anova_twoway_types d_anova_type
 
tamu_anova_table d_at
 
tamu_anova_table_twoway d_att
 
QList< Statistics * > d_data_samples
 
QList< int > d_factorA_levels
 
QList< int > d_factorB_levels
 
bool d_show_interactions
 
bool d_two_way
 
- 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

ANOVA.

Constructor & Destructor Documentation

◆ Anova()

Anova::Anova ( ApplicationWindow parent,
bool  twoWay = false,
double  level = 0.05 
)

Member Function Documentation

◆ addSample()

bool Anova::addSample ( const QString &  colName,
int  aLevel = 1,
int  bLevel = 1 
)

◆ freeMemory()

void Anova::freeMemory ( )
protectedvirtual

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

Reimplemented from Statistics.

References d_data_samples, and Statistics::freeMemory().

Referenced by mse().

◆ fStat()

double Anova::fStat ( )
inline

References d_at.

◆ fStatA()

double Anova::fStatA ( )
inline

References d_att.

◆ fStatAB()

double Anova::fStatAB ( )
inline

References d_att.

◆ fStatB()

double Anova::fStatB ( )
inline

References d_att.

◆ levelName()

QString Anova::levelName ( int  level,
bool  b = false 
)
protected

Referenced by logInfo(), mse(), and twoWayANOVA().

◆ logInfo()

QString Anova::logInfo ( )
virtual

◆ msa()

double Anova::msa ( )
inline

References d_att.

◆ msab()

double Anova::msab ( )
inline

References d_att.

◆ msb()

double Anova::msb ( )
inline

References d_att.

◆ mse()

double Anova::mse ( )
inline

◆ oneWayANOVA()

bool Anova::oneWayANOVA ( )
protected

◆ outputResultsTo()

void Anova::outputResultsTo ( Table t)
virtual

◆ pValue()

double Anova::pValue ( )
inlinevirtual

Reimplemented from StatisticTest.

References d_at.

◆ pValueA()

double Anova::pValueA ( )
inline

References d_att.

◆ pValueAB()

double Anova::pValueAB ( )
inline

References d_att.

◆ pValueB()

double Anova::pValueB ( )
inline

References d_att.

◆ resultTable()

Table * Anova::resultTable ( const QString &  name = QString())
virtual

Returns a pointer to the table created to display the results.

Reimplemented from StatisticTest.

References d_at, d_att, d_two_way, ApplicationWindow::newTable(), Table::numCols(), Table::setCell(), Table::setColumnType(), Table::setHeader(), Table::setText(), MdiSubWindow::setWindowLabel(), Table::table(), and Table::Text.

Referenced by mse().

◆ run()

bool Anova::run ( )
virtual

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

Reimplemented from Statistics.

References d_data_samples, Statistics::d_n, d_two_way, oneWayANOVA(), and twoWayANOVA().

Referenced by setAnovaTwoWayModel().

◆ setAnovaTwoWayModel()

void Anova::setAnovaTwoWayModel ( int  type)
inline

◆ showAnovaTwoWayInteractions()

void Anova::showAnovaTwoWayInteractions ( bool  show = true)
inline

References d_show_interactions.

◆ ssa()

double Anova::ssa ( )
inline

References d_att.

◆ ssab()

double Anova::ssab ( )
inline

References d_att.

◆ ssb()

double Anova::ssb ( )
inline

References d_att.

◆ sse()

double Anova::sse ( )
inline

References d_at, d_att, and d_two_way.

◆ ssm()

double Anova::ssm ( )
inline

References d_at.

◆ sst()

double Anova::sst ( )
inline

References d_at, d_att, and d_two_way.

◆ statistic()

double Anova::statistic ( )
inlinevirtual

Reimplemented from StatisticTest.

References d_at.

◆ twoWayANOVA()

bool Anova::twoWayANOVA ( )
protected

Member Data Documentation

◆ d_anova_type

gsl_anova_twoway_types Anova::d_anova_type
protected

◆ d_at

tamu_anova_table Anova::d_at
protected

◆ d_att

tamu_anova_table_twoway Anova::d_att
protected

◆ d_data_samples

QList<Statistics *> Anova::d_data_samples
protected

◆ d_factorA_levels

QList<int> Anova::d_factorA_levels
protected

Referenced by addSample(), logInfo(), and twoWayANOVA().

◆ d_factorB_levels

QList<int> Anova::d_factorB_levels
protected

Referenced by addSample(), logInfo(), and twoWayANOVA().

◆ d_show_interactions

bool Anova::d_show_interactions
protected

◆ d_two_way

bool Anova::d_two_way
protected

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