[][src]Module b2dp::mechanisms

Base-2 Differential Privacy Mechanisms

Modules

exponential

Implements the base-2 exponential mechanism.

integerpartition

Implements the integer partition exponential mechanism (fixed bounds variant).

laplace

Implements an approximation of the Laplace mechanims via the base-2 exponential mechanism. Note: this does incur the factor of 2 penalty on privacy loss. Consider sample_within_bounds or noisy_threshold as alternatives.

naive

Naive Mechanism Implementations for comparison

sparsevector

Implements the base-2 sparse vector mechanism.