QtiPlot
0.9.8.2
|
Abstract base class for data analysis operations. More...
#include <Statistics.h>
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 |
Table * | d_table |
A table source of data. | |
double | d_variance |
Abstract base class for data analysis operations.
Statistics::Statistics | ( | ApplicationWindow * | parent, |
const QString & | name = QString() |
||
) |
References setData().
Referenced by Anova::addSample(), and tTest::setSample2().
References freeMemory().
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] |
Returns the degrees of freedom.
Reimplemented in tTest.
References d_n.
Referenced by ChiSquareTest::lcl(), ChiSquareTest::logInfo(), StatisticTest::outputResultsTo(), ChiSquareTest::pValue(), StatisticTest::resultTable(), and ChiSquareTest::ucl().
void Statistics::freeMemory | ( | ) | [protected, virtual] |
Frees the memory allocated for the X and Y data sets.
Reimplemented in Anova, and tTest.
Referenced by setData(), ShapiroWilkTest::ShapiroWilkTest(), and ~Statistics().
QString Statistics::logInfo | ( | bool | header = true | ) |
References d_col_name, ApplicationWindow::d_decimal_digits, d_mean, d_n, d_sd, d_se, and d_variance.
Referenced by tTest::logInfo(), Anova::logInfo(), and run().
double Statistics::mean | ( | ) | [inline] |
References d_mean.
Referenced by tTest::setSample2().
void Statistics::memoryErrorMessage | ( | ) | [protected] |
Referenced by Anova::oneWayANOVA(), setData(), and Anova::twoWayANOVA().
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] |
References d_col_name.
Referenced by Anova::logInfo(), StatisticTest::outputResultsTo(), and StatisticTest::resultTable().
bool Statistics::setData | ( | const QString & | colName | ) |
References Table::cell(), Table::colIndex(), d_col_name, d_data, d_mean, d_n, d_sd, d_se, d_table, d_variance, freeMemory(), memoryErrorMessage(), Table::numRows(), ApplicationWindow::table(), and Table::text().
Referenced by Anova::addSample(), tTest::setSample1(), and Statistics().
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.
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] |
y data set to be analysed
Referenced by data(), freeMemory(), Anova::oneWayANOVA(), setData(), tTest::setSample2(), ShapiroWilkTest::ShapiroWilkTest(), and Anova::twoWayANOVA().
double Statistics::d_mean [protected] |
Referenced by tTest::lcl(), logInfo(), mean(), StatisticTest::outputResultsTo(), StatisticTest::resultTable(), setData(), tTest::setSample2(), tTest::t(), and tTest::ucl().
unsigned int Statistics::d_n [protected] |
The size of the data set to be analyzed.
Referenced by Anova::addSample(), ChiSquareTest::chiSquare(), dataSize(), tTest::dof(), dof(), freeMemory(), ShapiroWilkTest::infoString(), ChiSquareTest::lcl(), tTest::lcl(), logInfo(), Anova::oneWayANOVA(), StatisticTest::outputResultsTo(), tTest::power(), ChiSquareTest::pValue(), tTest::pValue(), StatisticTest::resultTable(), Anova::run(), run(), setData(), tTest::setSample2(), ShapiroWilkTest::ShapiroWilkTest(), tTest::t(), Anova::twoWayANOVA(), ChiSquareTest::ucl(), and tTest::ucl().
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] |
Referenced by tTest::lcl(), logInfo(), StatisticTest::outputResultsTo(), StatisticTest::resultTable(), setData(), standardError(), and tTest::ucl().
Table* Statistics::d_table [protected] |
A table source of data.
Referenced by ChiSquareTest::logInfo(), ShapiroWilkTest::logInfo(), tTest::logInfo(), Anova::logInfo(), and setData().
double Statistics::d_variance [protected] |