~singpolyma/FemmeJournal

09a1ac399a0c3b1472b3fc97a5ce7e7b782111f1 — Stephen Paul Weber 1 year, 4 months ago 3d2b30b
Do not fill in "human average" quite so heavily

Improves the speed with which the app adapts to a new user.

Closes https://todo.sr.ht/~singpolyma/femmejournal/39
1 files changed, 3 insertions(+), 3 deletions(-)

M statsmodel.cpp
M statsmodel.cpp => statsmodel.cpp +3 -3
@@ 176,9 176,9 @@ void StatsModel::refresh() {
		}
	}

	_meanCycleLength = round(meanExcludingOutliers(cycles, 28, 12));
	_meanMenstruationLength = round(meanExcludingOutliers(menstruations, 4, 12));
	_meanOvulationDaysFromEnd = round(meanExcludingOutliers(ovulations, 14, 12));
	_meanCycleLength = round(meanExcludingOutliers(cycles, 28, 4));
	_meanMenstruationLength = round(meanExcludingOutliers(menstruations, 4, 4));
	_meanOvulationDaysFromEnd = round(meanExcludingOutliers(ovulations, 14, 6));
	if(!_meanOvulationDaysFromEnd || _meanOvulationDaysFromEnd == 14) _meanOvulationDaysFromEnd = _meanCycleLength - 14;

	emit refreshed();