From 4da4ae2abceb585ba7d5c06cebc1eab60563df05 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 30 Oct 2024 13:04:14 +0100 Subject: [PATCH] make weakly typed values private --- modules/rating/src/main/glicko2/RatingCalculator.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/rating/src/main/glicko2/RatingCalculator.scala b/modules/rating/src/main/glicko2/RatingCalculator.scala index 29bbfb73dc02..89977618f4e0 100644 --- a/modules/rating/src/main/glicko2/RatingCalculator.scala +++ b/modules/rating/src/main/glicko2/RatingCalculator.scala @@ -34,12 +34,12 @@ final class RatingCalculator( import RatingCalculator.* - val DEFAULT_DEVIATION: Double = 350 - val CONVERGENCE_TOLERANCE: Double = 0.000001 - val ITERATION_MAX: Int = 1000 - val DAYS_PER_MILLI: Double = 1.0 / (1000 * 60 * 60 * 24) + private val DEFAULT_DEVIATION: Double = 350 + private val CONVERGENCE_TOLERANCE: Double = 0.000001 + private val ITERATION_MAX: Int = 1000 + private val DAYS_PER_MILLI: Double = 1.0 / (1000 * 60 * 60 * 24) - val ratingPeriodsPerMilli: Double = ratingPeriodsPerDay.value * DAYS_PER_MILLI + private val ratingPeriodsPerMilli: Double = ratingPeriodsPerDay.value * DAYS_PER_MILLI /**

Run through all players within a resultset and calculate their new ratings.

Players within the * resultset who did not compete during the rating period will have see their deviation increase (in line