entropy/entropyCalculator.go
func DateEntropy(dateMatch match.DateMatch) float64 {
	var entropy float64
	if dateMatch.Year < 100 {
		entropy = math.Log2(numDays * numMonths * 100)
	} else {
		entropy = math.Log2(numDays * numMonths * numYears)
	}

	if dateMatch.Separator != "" {
		entropy += 2 //add two bits for separator selection [/,-,.,etc]
	}
	return entropy
}
func DateEntropy(dateMatch match.DateMatch) float64 {
	var entropy float64
	if dateMatch.Year < 100 {
		entropy = math.Log2(numDays * numMonths * 100)
	} else {
		entropy = math.Log2(numDays * numMonths * numYears)
	}

	if dateMatch.Separator != "" {
		entropy += 2 //add two bits for separator selection [/,-,.,etc]
	}
	return entropy
}
func DateEntropy ( dateMatch match . DateMatch ) float64 { var entropy float64 if dateMatch . Year < 100 { entropy = math . Log2 ( numDays * numMonths * 100 ) } else { entropy = math . Log2 ( numDays * numMonths * numYears ) } if dateMatch . Separator != " " { entropy += 2 //add two bits for separator selection [/,-,.,etc] } return entropy }
// DateEntropy calculates the entropy provided by a date
DateEntropy calculates the entropy provided by a date