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

ANOVA. More...

#include <Anova.h>

Inheritance diagram for Anova:
StatisticTest Statistics

List of all members.

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.
bool run ()
 Actually does the job. Should be reimplemented in derived classes.
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 ()

Protected Member Functions

void freeMemory ()
 Frees the memory allocated for the X and Y data sets.
QString levelName (int level, bool b=false)
bool oneWayANOVA ()
bool twoWayANOVA ()

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

Detailed Description

ANOVA.


Constructor & Destructor Documentation

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

Member Function Documentation

bool Anova::addSample ( const QString &  colName,
int  aLevel = 1,
int  bLevel = 1 
)
void Anova::freeMemory ( ) [protected, virtual]

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

Reimplemented from Statistics.

References d_data_samples.

double Anova::fStat ( ) [inline]

References d_at.

double Anova::fStatA ( ) [inline]

References d_att.

double Anova::fStatAB ( ) [inline]

References d_att.

double Anova::fStatB ( ) [inline]

References d_att.

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

Referenced by logInfo(), and twoWayANOVA().

QString Anova::logInfo ( ) [virtual]
double Anova::msa ( ) [inline]

References d_att.

double Anova::msab ( ) [inline]

References d_att.

double Anova::msb ( ) [inline]

References d_att.

double Anova::mse ( ) [inline]

References d_at, d_att, and d_two_way.

bool Anova::oneWayANOVA ( ) [protected]
void Anova::outputResultsTo ( Table t) [virtual]
double Anova::pValue ( ) [inline, virtual]

Reimplemented from StatisticTest.

References d_at.

double Anova::pValueA ( ) [inline]

References d_att.

double Anova::pValueAB ( ) [inline]

References d_att.

double Anova::pValueB ( ) [inline]

References d_att.

Table * Anova::resultTable ( const QString &  name = QString()) [virtual]
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().

void Anova::setAnovaTwoWayModel ( int  type) [inline]

References d_anova_type.

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

References d_show_interactions.

double Anova::ssa ( ) [inline]

References d_att.

double Anova::ssab ( ) [inline]

References d_att.

double Anova::ssb ( ) [inline]

References d_att.

double Anova::sse ( ) [inline]

References d_at, d_att, and d_two_way.

double Anova::ssm ( ) [inline]

References d_at.

double Anova::sst ( ) [inline]

References d_at, d_att, and d_two_way.

double Anova::statistic ( ) [inline, virtual]

Reimplemented from StatisticTest.

References d_at.

bool Anova::twoWayANOVA ( ) [protected]

Member Data Documentation

gsl_anova_twoway_types Anova::d_anova_type [protected]
tamu_anova_table Anova::d_at [protected]
tamu_anova_table_twoway Anova::d_att [protected]
QList<Statistics *> Anova::d_data_samples [protected]
QList<int> Anova::d_factorA_levels [protected]

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

QList<int> Anova::d_factorB_levels [protected]

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

bool Anova::d_show_interactions [protected]
bool Anova::d_two_way [protected]

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