Trait smartnoise_validator::components::Accuracy [−][src]
Accuracy component trait
Components with Accuracy implemented may convert between privacy units and accuracy estimates
Required methods
fn accuracy_to_privacy_usage(
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
Implementors
impl Accuracy for Component
[src]
fn accuracy_to_privacy_usage(
&self,
accuracy: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracy: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
Utility implementation on the component.
This utility delegates evaluation to the concrete implementation of each component variant.
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
Utility implementation on the component.
This utility delegates evaluation to the concrete implementation of each component variant.
impl Accuracy for GaussianMechanism
[src]
fn accuracy_to_privacy_usage(
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
impl Accuracy for LaplaceMechanism
[src]
fn accuracy_to_privacy_usage(
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
impl Accuracy for SimpleGeometricMechanism
[src]
fn accuracy_to_privacy_usage(
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
impl Accuracy for SnappingMechanism
[src]
fn accuracy_to_privacy_usage(
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
[src]
&self,
accuracies: &Accuracies,
public_arguments: IndexMap<IndexKey, &Value>
) -> Result<Option<Vec<PrivacyUsage>>>
fn privacy_usage_to_accuracy(
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>
[src]
&self,
public_arguments: IndexMap<IndexKey, &Value>,
alpha: f64
) -> Result<Option<Vec<Accuracy>>>