From 236d47f8e3b7a8a0436623334aab20086051571d Mon Sep 17 00:00:00 2001 From: Dan Wheeler Date: Fri, 4 Sep 2015 22:46:14 -0700 Subject: [PATCH] date entropy bugfix need to multiply space size by 31 (possible days) and 12 (possible months) --- src/scoring.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scoring.coffee b/src/scoring.coffee index c86ed56e..9f5c4d7e 100644 --- a/src/scoring.coffee +++ b/src/scoring.coffee @@ -182,8 +182,8 @@ scoring = @lg Math.abs year_space date_entropy: (match) -> - # base entropy: lg of year distance from 2000 - entropy = @lg Math.abs(match.year - 2000) + # base entropy: lg of (year distance from 2000 * num_days * num_years) + entropy = @lg(Math.abs(match.year - 2000) * 31 * 12) # add one bit for four-digit years entropy += 1 if match.has_full_year # add two bits for separator selection (one of ~4 choices)