Expand description
Core concepts of OpenDP.
This module provides the central building blocks used throughout OpenDP:
- Measurement
- Transformation
- Domain
- Metric/Measure
- Function
- StabilityMap/PrivacyMap
Modules
ffi 🔒
Structs
A randomized mechanism with certain privacy characteristics.
A map evaluating the privacy of a
Measurement
.A map evaluating the stability of a
Transformation
.A data transformation with certain stability characteristics.
Enums
Traits
Trait to convert Result into FfiResult<*mut AnyMeasurement>. We can’t do this with From
because there’s a blanket implementation of From for FfiResult. We can’t do this with a method on Result
because it comes from another crate. So we need a separate trait.
Trait to convert Result into FfiResult<*mut AnyTransformation>. We can’t do this with From
because there’s a blanket implementation of From for FfiResult. We can’t do this with a method on Result
because it comes from another crate. So we need a separate trait.
A representation of the distance between two distributions.
A representation of the distance between two elements in a set.
Functions
Internal function. Free the memory associated with
error
.Internal function. Free the memory associated with
this
.Internal function. Free the memory associated with
this
.Get the carrier type associated with a domain descriptor
Get the distance type associated with a measure descriptor
Check the privacy relation of the
measurement
at the given d_in
, d_out
Get the input (carrier) data type of
this
.Get the input distance type of
measurement
.Invoke the
measurement
with arg
. Returns a differentially private release.Use the
measurement
to map a given d_in
to d_out
.Get the output distance type of
measurement
.Get the distance type associated with a metric descriptor
Check the privacy relation of the
measurement
at the given d_in
, d_out
Get the input (carrier) data type of
this
.Get the input distance type of
transformation
.Invoke the
transformation
with arg
. Returns a differentially private release.Use the
transformation
to map a given d_in
to d_out
.Get the output distance type of
transformation
.