Chi Square Test for Independence. Frontend + backend
ClosedPublic

Authored by devanshuagarwal on Aug 18 2019, 9:07 PM.

Details

Reviewers
sgerlach
asemke
Summary

Chi-Square Test is almost completed.

The test can be calculated either directly from statistic table by unchecking "Calculate Statistic from Spreadsheet" checkbox. The user then can fill the table and can press Recalculate to find chi-square value.

An added functionality of "Export To Spreadsheet" is added. Using this, the user can export the statistic table to a spreadsheet. It also acts as an alternative method to save statistic table in some form (temporarily)

There is also a "Clear" button added in the "Statistic Table" Widget in GeneralTestView class. The button clears all the data in "Statistic Table" excluding the header data.

MyTableModel is subclassed from QStandardItemModel, to provide functionality for a user to edit headers. The headers can also be put into non-editable mode if required.

Diff Detail

Repository
R262 LabPlot
Lint
Lint Skipped
Unit
Unit Tests Skipped
Restricted Application added a project: KDE Edu. · View Herald TranscriptAug 18 2019, 9:07 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
devanshuagarwal requested review of this revision.Aug 18 2019, 9:07 PM
sgerlach added inline comments.Aug 29 2019, 3:29 PM
src/backend/generalTest/CorrelationCoefficient.cpp
454

unnecessary space after "columns"?

src/backend/generalTest/MyTableModel.h
2

please rename to a more precise name describing the special table model

src/backend/generalTest/MyTableModel.h
2

It adds the functionality of editable headers in the table. So what about the name EditableHeadersTable?

sgerlach accepted this revision.Sep 2 2019, 12:59 PM

Sounds good to me. Please rename and commit.

This revision is now accepted and ready to land.Sep 2 2019, 12:59 PM