Module opendp::measurements
source ยท Expand description
Various measurement constructors.
The different crate::core::Measurement
implementations in this module are accessed by calling the appropriate constructor function.
Constructors are named in the form make_xxx()
, where xxx
indicates what the resulting Measurement
does.
Modulesยง
- alp ๐
- gaussian ๐
- geometric ๐
- gumbel_max ๐
- laplace ๐
- laplace_threshold ๐
- randomized_response ๐
Enumsยง
Traitsยง
Functionsยง
- Measurement to release a queryable containing a DP projection of bounded sparse data.
- Measurement to compute a DP projection of bounded sparse data.
- Measurement to compute a DP projection of bounded sparse data.
- Make a Measurement that adds noise from the Gaussian(
scale
) distribution to the input. - Equivalent to
make_laplace
but restricted to an integer support. Can specifybounds
to run the algorithm in near constant-time. - Make a Measurement that adds noise from the Laplace(
scale
) distribution to the input. - Make a Measurement that uses propose-test-release to privatize a hashmap of counts.
- Make a Measurement that implements randomized response on a categorical value.
- Make a Measurement that implements randomized response on a boolean value.
- Make a Measurement that takes a vector of scores and privately selects the index of the highest score.
- Make a Measurement that adds noise from the Gaussian(
scale
) distribution to a scalar-valued float input. - Make a Measurement that adds noise from the Laplace(
scale
) distribution to a scalar value. - Make a Measurement that adds noise from the discrete_gaussian(
scale
) distribution to the input. - Make a Measurement that adds noise from the discrete_laplace(
scale
) distribution to the input, using an efficient algorithm on rational bignums. - Make a Measurement that adds noise from the Gaussian(
scale
) distribution to the vector-valued input. - Make a Measurement that adds noise from the Laplace(
scale
) distribution to a vector value. - Make a Measurement that adds noise from the discrete_gaussian(
scale
) distribution to the input. - Make a Measurement that adds noise from the discrete_laplace(
scale
) distribution to the input, using an efficient algorithm on rational bignums. - Make a postprocessor that wraps the AlpState in a Queryable object.
- Measurement to release a queryable containing a DP projection of bounded sparse data.
- Make a Measurement that adds noise from the Gaussian(
scale
) distribution to the input. - Equivalent to
make_laplace
but restricted to an integer support. Can specifybounds
to run the algorithm in near constant-time. - Make a Measurement that adds noise from the Laplace(
scale
) distribution to the input. - Make a Measurement that uses propose-test-release to privatize a hashmap of counts.
- Make a Measurement that takes a vector of scores and privately selects the index of the highest score.