Trait smartnoise_validator::components::Report[][src]

pub trait Report {
    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>>>; }

Report component trait

Reportable components correspond to a computation that a researcher may want a JSON summary for

Required methods

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 the relevant metadata around a computation in a readable, JSON-serializable format.

Loading content...

Implementors

impl Report for Component[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]

Utility implementation on the component.

This utility delegates evaluation to the concrete implementation of each component variant.

impl Report for DpCount[src]

impl Report for DpCovariance[src]

impl Report for DpGumbelMedian[src]

impl Report for DpHistogram[src]

impl Report for DpLinearRegression[src]

impl Report for DpMaximum[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 Report for DpMedian[src]

impl Report for DpMinimum[src]

impl Report for DpQuantile[src]

impl Report for DpRawMoment[src]

impl Report for DpSum[src]

impl Report for DpVariance[src]

Loading content...