inspigtor.gui.models package¶
Submodules¶
inspigtor.gui.models.groups_model module¶
-
class
inspigtor.gui.models.groups_model.GroupsModel(pigs_model)¶ Bases:
PyQt5.QtGui.QStandardItemModelThis model describes a group of pigs.
-
evaluate_global_group_effect()¶ Performs a statistical test to check whether the groups belongs to the same distribution. If there are only two groups, a Mann-Whitney test is performed otherwise a Kruskal-Wallis test is performed.
- Returns:
- list: the p values resulting from Kruskal-Wallis or Mann-Whitney tests.
-
evaluate_global_time_effect()¶ Performs a Friedman statistical test to check whether the groups belongs to the same distribution. If there are only two groups, a Mann-Whitney test is performed otherwise a Kruskal-Wallis test is performed.
- Returns:
- collections.OrderedDict: the p values for each group resulting from the Friedman test
-
evaluate_pairwise_group_effect()¶ Performs a pairwise statistical test to check whether each pair of groups belongs to the same distribution. This should be evaluated only if the number of groups is >= 2.
- Returns:
- dict: the p values define for each pair of groups resulting from the Dunn test.
-
evaluate_pairwise_time_effect()¶ Performs a Dunn statistical test to check whether within each group the averages values defined over intervals belongs to the same distribution.
- Returns:
- collections.OrderedDict: the p values matrix for each group resulting from the Dunn test
-
inspigtor.gui.models.individuals_model module¶
inspigtor.gui.models.pandas_data_model module¶
-
class
inspigtor.gui.models.pandas_data_model.PandasDataModel(data)¶ Bases:
PyQt5.QtCore.QAbstractTableModel-
columnCount(self, parent: QModelIndex = QModelIndex()) → int¶
-
data(self, QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) → Any¶
-
headerData(self, int, Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) → Any¶
-
rowCount(self, parent: QModelIndex = QModelIndex()) → int¶
-
setColoredRows(rows)¶
-