edwindj / sdcSpatial

Create privacy protected maps with R
https://edwindj.github.io/sdcSpatial/
8 stars 1 forks source link

Function description mask_random #10

Open mamoeh opened 1 year ago

mamoeh commented 1 year ago

A minor issue in the description of the 'mask_random'-function: the parameter r is given as "maximum perturbation distance", while from the function it is clear that it is just the (straightup) perturbation distance (i.e. a user supplied-vector of distances between old and new locations). It is only a "maximum" perturbation distance in 'mask_weighted_random', where it overrides distances that are too long.

[Also, there's a small spelling mistake in the description: "Note that r can either be one distance, of a distance per data point" - should be 'or' rather than 'of.]

edwindj commented 1 year ago

Thanks for the feedback, much appreciated!