diff-priv 0.1.0

k-anonymity, (c,l)-diversity and ε-differential privacy framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Analyses the behaviour of creating and deleting
/// the clusters throughout algorithms lifetime
#[derive(Default)]
pub struct ClusterAnalyser {
    pub delete_counter: i32,
    pub create_counter: i32,
}

impl ClusterAnalyser {
    pub fn add_count(&mut self) {
        self.create_counter += 1;
    }

    pub fn remove_count(&mut self) {
        self.delete_counter += 1;
    }
}