opendp 0.14.2-dev.20260401.2

A library of differential privacy algorithms for the statistical analysis of sensitive private data.
1
2
3
4
# type: ignore
class ZExpFamily2: # analogous to impl Sample for ZExpFamily<1> in Rust
    def sample(self, shift):
        return shift + sample_discrete_gaussian(self.scale) # |\label{line:add}|