Function smartnoise_validator::components::snapping_mechanism::redefine_epsilon [−][src]
pub fn redefine_epsilon(epsilon: f64, b: f64, precision: u32) -> f64
Gets functional epsilon for Snapping mechanism such that privacy loss does not exceed the user’s proposed budget. Described in https://github.com/opendp/smartnoise-core/blob/develop/whitepapers/mechanisms/snapping/snapping_implementation_notes.pdf
Arguments
epsilon
- Desired privacy guarantee.b
- Upper bound on function value being privatized.precision
- Number of bits of precision to which arithmetic inside the mechanism has access.
Returns
Functional epsilon that will determine amount of noise.