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().
Statistics::~Statistics | ( | ) |
References freeMemory().
|
inline |
Returns the y values of the input data set.
References d_data.
Referenced by Anova::oneWayANOVA(), tTest::setSample2(), and Anova::twoWayANOVA().
|
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().
|
inlinevirtual |
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().
|
protectedvirtual |
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().
|
inline |
References d_mean.
Referenced by tTest::setSample2().
|
protected |
Referenced by Anova::oneWayANOVA(), setData(), and Anova::twoWayANOVA().
|
virtual |
Actually does the job. Should be reimplemented in derived classes.
Reimplemented in Anova.
References d_n, d_result_log, and logInfo().
|
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().
|
inline |
References d_result_log.
|
inline |
References d_sd.
Referenced by tTest::setSample2().
|
inline |
References d_se.
|
inline |
References d_variance.
|
protected |
The name of the source data set.
Referenced by ShapiroWilkTest::infoString(), logInfo(), sampleName(), and setData().
|
protected |
y data set to be analysed
Referenced by data(), freeMemory(), Anova::oneWayANOVA(), setData(), tTest::setSample2(), ShapiroWilkTest::ShapiroWilkTest(), and Anova::twoWayANOVA().
|
protected |
Referenced by tTest::lcl(), logInfo(), mean(), StatisticTest::outputResultsTo(), StatisticTest::resultTable(), setData(), tTest::setSample2(), tTest::t(), and tTest::ucl().
|
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().
|
protected |
Flag specifying if the results should be displayed in the results log.
Referenced by run(), and showResultsLog().
|
protected |
|
protected |
Referenced by tTest::lcl(), logInfo(), StatisticTest::outputResultsTo(), StatisticTest::resultTable(), setData(), standardError(), and tTest::ucl().
|
protected |
A table source of data.
Referenced by ChiSquareTest::logInfo(), ShapiroWilkTest::logInfo(), tTest::logInfo(), Anova::logInfo(), and setData().
|
protected |