Skip to content

Commit

Permalink
Remove variance in descriptive stats
Browse files Browse the repository at this point in the history
  • Loading branch information
yaramt committed Sep 10, 2024
1 parent 5682da1 commit eb28b86
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class DescriptiveStatisticsWidget extends AverageSectionWidget {
final String minB;
final String maxA;
final String maxB;
final String varianceA;
final String varianceB;
final int totalInterventionsA;
final int totalInterventionsB;

Expand Down Expand Up @@ -49,12 +47,6 @@ class DescriptiveStatisticsWidget extends AverageSectionWidget {
maxB = valuesInterventionB.isNotEmpty
? valuesInterventionB.max.toStringAsFixed(2)
: "NONE",
varianceA = valuesInterventionA.isNotEmpty
? pow(valuesInterventionA.standardDeviation, 2).toStringAsFixed(2)
: "NONE",
varianceB = valuesInterventionB.isNotEmpty
? pow(valuesInterventionB.standardDeviation, 2).toStringAsFixed(2)
: "NONE",
totalInterventionsA = subject.study.schedule.phaseDuration *
subject.study.schedule.numberOfCycles,
totalInterventionsB = subject.study.schedule.phaseDuration *
Expand Down Expand Up @@ -127,7 +119,6 @@ class DescriptiveStatisticsWidget extends AverageSectionWidget {
_buildTableRow(['Average', averageA, averageB]),
_buildTableRow(['Min', minA, minB]),
_buildTableRow(['Max', maxA, maxB]),
_buildTableRow(['Variance', varianceA, varianceB]),
],
),
);
Expand Down

0 comments on commit eb28b86

Please sign in to comment.