Struct opendp::measures::SmoothedMaxDivergence
source · [−]pub struct SmoothedMaxDivergence<Q>(PhantomData<Q>);
Expand description
$\epsilon(\delta)$-approximate differential privacy.
The greatest divergence between any randomly selected subset of the support, with an additive tolerance for error.
The distance $d$ is of type SMDCurve
, so it can be invoked with a $\delta$
to retrieve the tightest corresponding $\epsilon$.
Proof Definition
d
-closeness
For any two vectors $u, v \in \texttt{D}$ and any choice of $\epsilon, \delta$ such that $\epsilon \ge d(\delta)$, we say that $M(u), M(v)$ are $d$-close under the smoothed max divergence measure (abbreviated as $D_{S\infty}$) whenever
D_{S\infty}(M(u) \| M(v)) = \max_{S \subseteq \textrm{Supp}(Y)} \Big[\ln \dfrac{\Pr[M(u) \in S] + \delta}{\Pr[M(v) \in S]} \Big] \leq \epsilon.
Tuple Fields
0: PhantomData<Q>
Trait Implementations
sourceimpl<Q: Clone> Clone for SmoothedMaxDivergence<Q>
impl<Q: Clone> Clone for SmoothedMaxDivergence<Q>
sourcefn clone(&self) -> SmoothedMaxDivergence<Q>
fn clone(&self) -> SmoothedMaxDivergence<Q>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<Q> Debug for SmoothedMaxDivergence<Q>
impl<Q> Debug for SmoothedMaxDivergence<Q>
sourceimpl<Q> Default for SmoothedMaxDivergence<Q>
impl<Q> Default for SmoothedMaxDivergence<Q>
sourceimpl<Q: Clone> FixDeltaMeasure for SmoothedMaxDivergence<Q>
impl<Q: Clone> FixDeltaMeasure for SmoothedMaxDivergence<Q>
type Atom = Q
type FixedMeasure = FixedSmoothedMaxDivergence<Q>
fn new_fixed_measure(&self) -> Fallible<Self::FixedMeasure>
fn fix_delta(&self, curve: &Self::Distance, delta: &Q) -> Fallible<(Q, Q)>
sourceimpl<Q: Clone> Measure for SmoothedMaxDivergence<Q>
impl<Q: Clone> Measure for SmoothedMaxDivergence<Q>
sourceimpl<Q> PartialEq<SmoothedMaxDivergence<Q>> for SmoothedMaxDivergence<Q>
impl<Q> PartialEq<SmoothedMaxDivergence<Q>> for SmoothedMaxDivergence<Q>
Auto Trait Implementations
impl<Q> RefUnwindSafe for SmoothedMaxDivergence<Q>where
Q: RefUnwindSafe,
impl<Q> Send for SmoothedMaxDivergence<Q>where
Q: Send,
impl<Q> Sync for SmoothedMaxDivergence<Q>where
Q: Sync,
impl<Q> Unpin for SmoothedMaxDivergence<Q>where
Q: Unpin,
impl<Q> UnwindSafe for SmoothedMaxDivergence<Q>where
Q: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.