Skip to main content
. 2021 Apr 22;7:e481. doi: 10.7717/peerj-cs.481

Table 2. Algorithm 2.

Privacy budget allocation
Input: sampling interval I, Privacy budget ϵ, Privacy budget allocated for each sampling point ϵ1,,ϵi1
Output: Privacy budget ϵi for sampling point i
ifti not included in the window Wt
Calculate the number of sampling points ni
Calculate the current sampling frequency niM and update Wt
Calculate the remaining privacy budget ϵr=ϵk=iw+1i1ϵk
Calculate the allocated privacy budget ϵi=ϵr×1IwlnI+1