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
5
6
7
8
# type: ignore 
def sample_geometric_exp_slow(x) -> int: 
    k = 0 
    while True: 
        if sample_bernoulli_exp(x): # |\label{line:B}| 
            k += 1 
        else: 
            return k