Changeset View
Changeset View
Standalone View
Standalone View
src/kdefrontend/dockwidgets/HypothesisTestDock.cpp
Context not available. | |||||
81 | ui.pbLeveneTest->hide(); | 81 | ui.pbLeveneTest->hide(); | ||
---|---|---|---|---|---|
82 | ui.lCategorical->hide(); | 82 | ui.lCategorical->hide(); | ||
83 | ui.chbCategorical->hide(); | 83 | ui.chbCategorical->hide(); | ||
84 | ui.lCalculateStats->hide(); | ||||
85 | ui.chbCalculateStats->hide(); | ||||
84 | ui.lCol1->hide(); | 86 | ui.lCol1->hide(); | ||
85 | ui.cbCol1->hide(); | 87 | ui.cbCol1->hide(); | ||
86 | ui.lCol2->hide(); | 88 | ui.lCol2->hide(); | ||
Context not available. | |||||
211 | connect(ui.rbH1TwoTail, &QRadioButton::toggled, this, &HypothesisTestDock::onRbH1TwoTailToggled); | 213 | connect(ui.rbH1TwoTail, &QRadioButton::toggled, this, &HypothesisTestDock::onRbH1TwoTailToggled); | ||
212 | 214 | | |||
213 | connect(ui.cbCol1, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &HypothesisTestDock::col1IndexChanged); | 215 | connect(ui.cbCol1, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &HypothesisTestDock::col1IndexChanged); | ||
216 | connect(ui.chbCalculateStats, &QCheckBox::stateChanged, this, &HypothesisTestDock::chbCalculateStatsStateChanged); | ||||
214 | connect(ui.chbCategorical, &QCheckBox::stateChanged, this, &HypothesisTestDock::changeCbCol2Label); | 217 | connect(ui.chbCategorical, &QCheckBox::stateChanged, this, &HypothesisTestDock::changeCbCol2Label); | ||
215 | 218 | | |||
216 | connect(ui.chbPopulationSigma, &QCheckBox::stateChanged, this, &HypothesisTestDock::chbPopulationSigmaStateChanged); | 219 | connect(ui.chbPopulationSigma, &QCheckBox::stateChanged, this, &HypothesisTestDock::chbPopulationSigmaStateChanged); | ||
Context not available. | |||||
292 | ui.lCol3->setVisible(m_test == (HypothesisTest::Anova | HypothesisTest::TwoWay)); | 295 | ui.lCol3->setVisible(m_test == (HypothesisTest::Anova | HypothesisTest::TwoWay)); | ||
293 | ui.cbCol3->setVisible(m_test == (HypothesisTest::Anova | HypothesisTest::TwoWay)); | 296 | ui.cbCol3->setVisible(m_test == (HypothesisTest::Anova | HypothesisTest::TwoWay)); | ||
294 | 297 | | |||
298 | ui.lCalculateStats->show(); | ||||
299 | ui.chbCalculateStats->show(); | ||||
300 | ui.chbCalculateStats->setChecked(true); | ||||
301 | | ||||
295 | ui.lEqualVariance->setVisible(m_test == (HypothesisTest::TTest | HypothesisTest::TwoSampleIndependent)); | 302 | ui.lEqualVariance->setVisible(m_test == (HypothesisTest::TTest | HypothesisTest::TwoSampleIndependent)); | ||
296 | ui.chbEqualVariance->setVisible(m_test == (HypothesisTest::TTest | HypothesisTest::TwoSampleIndependent)); | 303 | ui.chbEqualVariance->setVisible(m_test == (HypothesisTest::TTest | HypothesisTest::TwoSampleIndependent)); | ||
297 | ui.chbEqualVariance->setChecked(true); | 304 | ui.chbEqualVariance->setChecked(true); | ||
Context not available. | |||||
355 | 362 | | |||
356 | m_hypothesisTest->setColumns(cols); | 363 | m_hypothesisTest->setColumns(cols); | ||
357 | 364 | | |||
358 | m_hypothesisTest->performTest(m_test, ui.chbCategorical->isChecked(), ui.chbEqualVariance->isChecked()); | 365 | m_hypothesisTest->performTest(m_test, | ||
366 | ui.chbCategorical->isChecked(), | ||||
367 | ui.chbEqualVariance->isChecked(), | ||||
368 | ui.chbCalculateStats->isChecked()); | ||||
359 | } | 369 | } | ||
360 | 370 | | |||
361 | void HypothesisTestDock::performLeveneTest() { | 371 | void HypothesisTestDock::performLeveneTest() { | ||
Context not available. | |||||
567 | changeCbCol2Label(); | 577 | changeCbCol2Label(); | ||
568 | } | 578 | } | ||
569 | 579 | | |||
580 | void HypothesisTestDock::chbCalculateStatsStateChanged() { | ||||
581 | if (!ui.chbCalculateStats->isChecked()) { | ||||
582 | ui.lVariables->hide(); | ||||
583 | ui.lCol1->hide(); | ||||
584 | ui.cbCol1->hide(); | ||||
585 | ui.lCol2->hide(); | ||||
586 | ui.cbCol2->hide(); | ||||
587 | ui.lCol3->hide(); | ||||
588 | ui.cbCol3->hide(); | ||||
589 | } else { | ||||
590 | ui.lVariables->show(); | ||||
591 | showHypothesisTest(); | ||||
592 | } | ||||
593 | | ||||
594 | if (m_hypothesisTest != nullptr) | ||||
595 | m_hypothesisTest->initInputStatsTable(m_test, ui.chbCalculateStats->isChecked()); | ||||
596 | } | ||||
597 | | ||||
570 | 598 | | |||
571 | //void HypothesisTestDock::connectionChanged() { | 599 | //void HypothesisTestDock::connectionChanged() { | ||
572 | // if (ui.cbConnection->currentIndex() == -1) { | 600 | // if (ui.cbConnection->currentIndex() == -1) { | ||
Context not available. |