microsoft / prv_accountant

A fast algorithm to optimally compose privacy guarantees of differentially private (DP) mechanisms to arbitrary accuracy.
MIT License
65 stars 10 forks source link

Add assertion to make domain creation meets requirements #20

Closed wulu473 closed 2 years ago

wulu473 commented 2 years ago

Previously in some edge cases we could end up with a domain that is not of the correct mesh size. In this PR we first round so we compensate for floating point inaccuracies and we also add an assertion to make sure the domain has the correct mesh size.