diff-priv 0.1.0

k-anonymity, (c,l)-diversity and ε-differential privacy framework
Documentation
1
2
3
4
5
6
7
8
use crate::data_manipulation::anonymizable::{Anonymizable, QuasiIdentifierTypes};

/// This trait lets you implement a custom noising function to add ε-differential privacy to
/// a struct that implements `Anonymizable`
/// DiffPriv already supports Laplace noise as a possible noiser
pub trait Noiser: Default + Clone + Sync {
    fn add_noise<M: Anonymizable>(&mut self, value: &M) -> Vec<QuasiIdentifierTypes>;
}