lmdk_lib: OCD
This commit is contained in:
parent
7d4865d5d1
commit
b408b55d56
@ -31,12 +31,10 @@ def add_polar_noise(loc, epsilon):
|
|||||||
[https://github.com/chatziko/location-guard/blob/master/src/js/common/laplace.js]
|
[https://github.com/chatziko/location-guard/blob/master/src/js/common/laplace.js]
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
loc - The original location
|
loc - The original location.
|
||||||
loc - The original location
|
epsilon - The privacy budget.
|
||||||
loc - The original location
|
|
||||||
epsilon - The privacy budget
|
|
||||||
Returns:
|
Returns:
|
||||||
The perturbed location (lat, lng)
|
The perturbed location (lat, lng).
|
||||||
'''
|
'''
|
||||||
# The bearing in radians.
|
# The bearing in radians.
|
||||||
# Random number in [0, 2*pi),
|
# Random number in [0, 2*pi),
|
||||||
|
Loading…
Reference in New Issue
Block a user