Trait smartnoise_runtime::components::Evaluable[][src]

pub trait Evaluable {
    fn evaluate(
        &self,
        privacy_definition: &Option<PrivacyDefinition>,
        arguments: NodeArguments
    ) -> Result<ReleaseNode>; }

Evaluable component trait

Evaluable structs represent an abstract computation.

Required methods

fn evaluate(
    &self,
    privacy_definition: &Option<PrivacyDefinition>,
    arguments: NodeArguments
) -> Result<ReleaseNode>
[src]

The concrete implementation of the abstract computation that the struct represents.

Arguments

  • privacy_definition - the definition of privacy under which the computation takes place
  • arguments - a hashmap, where the String keys are the names of arguments, and the Value values are the data inputs

Returns

The concrete value corresponding to the abstract computation that the struct represents

Loading content...

Implementors

impl Evaluable for Variant[src]

fn evaluate(
    &self,
    privacy_definition: &Option<PrivacyDefinition>,
    arguments: NodeArguments
) -> Result<ReleaseNode>
[src]

Utility implementation on the enum containing all variants of a component.

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

impl Evaluable for Abs[src]

impl Evaluable for Add[src]

impl Evaluable for And[src]

impl Evaluable for Cast[src]

impl Evaluable for Clamp[src]

impl Evaluable for ColumnBind[src]

impl Evaluable for Count[src]

impl Evaluable for Covariance[src]

impl Evaluable for Digitize[src]

impl Evaluable for Divide[src]

impl Evaluable for DpGumbelMedian[src]

impl Evaluable for Equal[src]

impl Evaluable for ExponentialMechanism[src]

impl Evaluable for Filter[src]

impl Evaluable for GaussianMechanism[src]

impl Evaluable for GreaterThan[src]

impl Evaluable for Histogram[src]

impl Evaluable for Impute[src]

impl Evaluable for Index[src]

impl Evaluable for LaplaceMechanism[src]

impl Evaluable for LessThan[src]

impl Evaluable for Log[src]

impl Evaluable for Materialize[src]

impl Evaluable for Mean[src]

impl Evaluable for Modulo[src]

impl Evaluable for Multiply[src]

impl Evaluable for Negate[src]

impl Evaluable for Negative[src]

impl Evaluable for Or[src]

impl Evaluable for Partition[src]

impl Evaluable for Power[src]

impl Evaluable for Quantile[src]

impl Evaluable for RawMoment[src]

impl Evaluable for Reshape[src]

impl Evaluable for Resize[src]

impl Evaluable for RowMax[src]

impl Evaluable for RowMin[src]

impl Evaluable for SimpleGeometricMechanism[src]

impl Evaluable for SnappingMechanism[src]

impl Evaluable for Subtract[src]

impl Evaluable for Sum[src]

impl Evaluable for TheilSen[src]

impl Evaluable for ToDataframe[src]

impl Evaluable for Union[src]

impl Evaluable for Variance[src]

Loading content...