Skip to contents

Make a Measurement that uses propose-test-release to privatize a hashmap of counts.

Usage

make_laplace_threshold(
  input_domain,
  input_metric,
  scale,
  threshold,
  k = -1074L
)

Arguments

input_domain

Domain of the input.

input_metric

Metric for the input domain.

scale

Noise scale parameter for the laplace distribution. scale == standard_deviation / sqrt(2).

threshold

Exclude counts that are less than this minimum value.

k

The noise granularity in terms of 2^k.

Value

Measurement

Details

This function takes a noise granularity in terms of 2^k. Larger granularities are more computationally efficient, but have a looser privacy map. If k is not set, k defaults to the smallest granularity.

Required features: contrib, floating-point

make_laplace_threshold in Rust documentation.

Supporting Elements:

  • Input Domain: MapDomain<AtomDomain<TK>, AtomDomain<TV>>

  • Output Type: HashMap<TK, TV>

  • Input Metric: L1Distance<TV>

  • Output Measure: Approximate<MaxDivergence>