Function opendp::measurements::then_geometric
source · pub fn then_geometric<D: 'static + GeometricDomain<QO>, QO: 'static>(
scale: QO,
bounds: Option<(<D::InputMetric as Metric>::Distance, <D::InputMetric as Metric>::Distance)>
) -> PartialMeasurement<D, D::Carrier, D::InputMetric, MaxDivergence<QO>>where
(D, D::InputMetric): MetricSpace,
Expand description
Equivalent to make_laplace
but restricted to an integer support.
Can specify bounds
to run the algorithm in near constant-time.
§Citations
§Arguments
input_domain
- Domain of the data type to be privatized.input_metric
- Metric of the data type to be privatized.scale
- Noise scale parameter for the distribution.scale
== standard_deviation / sqrt(2).bounds
- Set bounds on the count to make the algorithm run in constant-time.
§Arguments
D
- Domain of the data type to be privatized. Valid values areVectorDomain<AtomDomain<T>>
orAtomDomain<T>
QO
- Data type of the scale and output distance