Function smartnoise_validator::compute_privacy_usage [−][src]
pub fn compute_privacy_usage(
privacy_definition: PrivacyDefinition,
computation_graph: HashMap<u32, Component>,
release: Release
) -> Result<PrivacyUsage>
Compute overall privacy usage of an analysis.
The privacy usage is sum of the privacy usages for each node. The Release’s actual privacy usage, if defined, takes priority over the maximum allowable privacy usage defined in the Analysis.