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
9
10
11
# type: ignore
def make_laplace_threshold(
    input_domain: DI,
    input_metric: MI,
    scale: f64,
    threshold: DI_Atom,
    k: Option[i32],
) -> Measurement[DI, DI_Carrier, MI, MO]:
    return DiscreteLaplace(scale, k).make_noise_threshold(
        (input_domain, input_metric), threshold
    )