Changeset View
Changeset View
Standalone View
Standalone View
src/backend/generalTest/GeneralTest.h
Context not available. | |||||
32 | #include "backend/core/AbstractPart.h" | 32 | #include "backend/core/AbstractPart.h" | ||
---|---|---|---|---|---|
33 | #include "backend/lib/macros.h" | 33 | #include "backend/lib/macros.h" | ||
34 | 34 | | |||
35 | class HypothesisTestView; | 35 | class GeneralTestView; | ||
36 | class Spreadsheet; | 36 | class Spreadsheet; | ||
37 | class QString; | 37 | class QString; | ||
38 | class Column; | 38 | class Column; | ||
Context not available. | |||||
112 | QLabel* m_resultLine[10]; | 112 | QLabel* m_resultLine[10]; | ||
113 | QMap<QString, QString> m_tooltips; | 113 | QMap<QString, QString> m_tooltips; | ||
114 | 114 | | |||
115 | bool isNumericOrInteger(Column* column); | 115 | bool isNumericOrInteger(const Column* column); | ||
116 | QString round(QVariant number, int precision = 3); | 116 | QString round(QVariant number, int precision = 3); | ||
117 | 117 | | |||
118 | int findCount(const Column* column); | ||||
119 | double findSum(const Column* column, int N = -1); | ||||
120 | double findSumSq(const Column* column, int N = -1); | ||||
121 | double findMean(const Column* column, int N = -1); | ||||
122 | double findStd(const Column* column, int N, double mean); | ||||
123 | double findStd(const Column* column, int N = -1); | ||||
124 | | ||||
118 | void countPartitions(Column* column, int& np, int& totalRows); | 125 | void countPartitions(Column* column, int& np, int& totalRows); | ||
126 | | ||||
127 | | ||||
128 | // double findSumProducts(const Column* columns[], int N = -1); | ||||
129 | | ||||
119 | ErrorType findStats(const Column* column,int& count, double& sum, double& mean, double& std); | 130 | ErrorType findStats(const Column* column,int& count, double& sum, double& mean, double& std); | ||
120 | ErrorType findStatsPaired(const Column* column1, const Column* column2, int& count, double& sum, double& mean, double& std); | 131 | ErrorType findStatsPaired(const Column* column1, const Column* column2, int& count, double& sum, double& mean, double& std); | ||
121 | ErrorType findStatsCategorical(Column* column1, Column* column2, int n[], double sum[], double mean[], double std[], QMap<QString, int>& colName, const int& np, const int& totalRows); | 132 | ErrorType findStatsCategorical(Column* column1, Column* column2, int n[], double sum[], double mean[], double std[], QMap<QString, int>& colName, const int& np, const int& totalRows); | ||
Context not available. | |||||
129 | void printError(const QString& errorMsg); | 140 | void printError(const QString& errorMsg); | ||
130 | 141 | | |||
131 | bool m_dbCreated{false}; | 142 | bool m_dbCreated{false}; | ||
132 | mutable HypothesisTestView* m_view{nullptr}; | 143 | mutable GeneralTestView* m_view{nullptr}; | ||
133 | }; | 144 | }; | ||
134 | 145 | | |||
135 | #endif // GeneralTest_H | 146 | #endif // GeneralTest_H | ||
Context not available. |