Struct smartnoise_validator::proto::DpMean[][src]

pub struct DpMean {
    pub implementation: String,
    pub mechanism: String,
    pub privacy_usage: Vec<PrivacyUsage>,
}

DPMean Component

Returns differentially private estimates of the means of each column of the data.

This struct represents an abstract computation. Arguments are provided via the graph. Additional options are set via the fields on this struct. The return is the result of the dp_mean on the arguments.

Arguments

Returns

Fields

implementation: String

Privatizing algorithm to use. One of [resize, plug-in]

mechanism: String

Privatizing mechanism to use. One of [Laplace, Snapping, Gaussian, AnalyticGaussian].

privacy_usage: Vec<PrivacyUsage>

Object describing the type and amount of privacy to be used for the mechanism release. Atomic data type value must be float. Example value: {‘epsilon’: 0.5}

Trait Implementations

impl Clone for DpMean[src]

impl Debug for DpMean[src]

impl Default for DpMean[src]

impl Expandable for DpMean[src]

fn expand_component(
    &self,
    privacy_definition: &Option<PrivacyDefinition>,
    component: &Component,
    _public_arguments: &IndexMap<IndexKey, &Value>,
    properties: &NodeProperties,
    component_id: u32,
    maximum_id: u32
) -> Result<ComponentExpansion>
[src]

Expand component

Arguments

  • &self - this
  • _privacy_definition - privacy definition from protocol buffer descriptor
  • component - component from prototypes/components.proto
  • _properties - NodeProperties
  • component_id - identifier for component from prototypes/components.proto
  • maximum_id - last ID value created for sequence, increment used to define current ID

impl Message for DpMean[src]

impl PartialEq<DpMean> for DpMean[src]

impl Report for DpMean[src]

fn summarize(
    &self,
    node_id: u32,
    component: &Component,
    _public_arguments: IndexMap<IndexKey, &Value>,
    properties: NodeProperties,
    release: &Value,
    variable_names: Option<&Vec<IndexKey>>
) -> Result<Option<Vec<JSONRelease>>>
[src]

summarize results

Arguments

  • &self - this
  • node_id - identifier for node
  • component - component from prototypes/components.proto
  • public_arguments - HashMap of String, Value public arguments
  • properties - NodeProperties
  • release - JSONRelease containing DP release information

impl StructuralPartialEq for DpMean[src]

Auto Trait Implementations

impl RefUnwindSafe for DpMean

impl Send for DpMean

impl Sync for DpMean

impl Unpin for DpMean

impl UnwindSafe for DpMean

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]