DP
API reference: pe.dp package.
pe.dp.dp.DP
is responsible for implementing the differential privacy mechanism. It has the following key methods:
pe.dp.dp.DP.set_epsilon_and_delta()
: Set the privacy budget for the differential privacy mechanism.pe.dp.dp.DP.add_noise()
: Add noise to the histogram values to achieve differential privacy.
Available Differential Privacy Mechanisms
Currently, the following differential privacy mechanisms are implemented:
pe.dp.gaussian.Gaussian
: The Gaussian mechanism, which adds Gaussian noise to the histogram values.