hallnath1 / CASTLEGUARD

CASTLEGUARD: Continuously Anonymizing STreaming data via adaptive cLustEring with GUARanteed Differential privacy
Apache License 2.0
7 stars 0 forks source link

Fix a division by zero in Range.VInfoLoss #47

Closed alexander-jackson closed 4 years ago

alexander-jackson commented 4 years ago

Fix a division by zero error in VInfoLoss. This would occur when only one tuple had been inserted into the algorithm, meaning that the global ranges would have the same minimum and maximum value. Instead, simply return 0 in this case.