Created
August 16, 2021 06:11
-
-
Save jaimedantas/15a3d7331cc669de58633f77de09191c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensitivity = 1; | |
epsilon = 0.1; | |
scale = sensitivity/epsilon; | |
for i=1:520 | |
laplace = round(randlap(0,scale)); | |
dsrand(i,1) = dsrand(i,1) + laplace; % our function | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment