Changeset View
Changeset View
Standalone View
Standalone View
tests/stats/ttest/TTestTest.cpp
Context not available. | |||||
82 | bool equalVariance = true; | 82 | bool equalVariance = true; | ||
---|---|---|---|---|---|
83 | 83 | | |||
84 | tTest.performTest(test, categoricalVariable, equalVariance); | 84 | tTest.performTest(test, categoricalVariable, equalVariance); | ||
85 | double tValue = tTest.statisticValue(); | 85 | double tValue = tTest.statisticValue()[0]; | ||
86 | double pValue = tTest.pValue(); | 86 | double pValue = tTest.pValue()[0]; | ||
87 | 87 | | |||
88 | qDebug() << "tValue is " << tValue; | 88 | qDebug() << "tValue is " << tValue; | ||
89 | qDebug() << "pValue is: " << pValue; | 89 | qDebug() << "pValue is: " << pValue; | ||
Context not available. | |||||
135 | test.tail = HypothesisTest::Test::Tail::Two; | 135 | test.tail = HypothesisTest::Test::Tail::Two; | ||
136 | 136 | | |||
137 | tTest.performTest(test); | 137 | tTest.performTest(test); | ||
138 | double tValue = tTest.statisticValue(); | 138 | double tValue = tTest.statisticValue()[0]; | ||
139 | double pValue = tTest.pValue(); | 139 | double pValue = tTest.pValue()[0]; | ||
140 | 140 | | |||
141 | qDebug() << "tValue is " << tValue; | 141 | qDebug() << "tValue is " << tValue; | ||
142 | qDebug() << "pValue is: " << pValue; | 142 | qDebug() << "pValue is: " << pValue; | ||
Context not available. | |||||
185 | test.tail = HypothesisTest::Test::Tail::Two; | 185 | test.tail = HypothesisTest::Test::Tail::Two; | ||
186 | 186 | | |||
187 | tTest.performTest(test); | 187 | tTest.performTest(test); | ||
188 | double tValue = tTest.statisticValue(); | 188 | double tValue = tTest.statisticValue()[0]; | ||
189 | double pValue = tTest.pValue(); | 189 | double pValue = tTest.pValue()[0]; | ||
190 | 190 | | |||
191 | qDebug() << "tValue is " << tValue; | 191 | qDebug() << "tValue is " << tValue; | ||
192 | qDebug() << "pValue is: " << pValue; | 192 | qDebug() << "pValue is: " << pValue; | ||
Context not available. |