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.]
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.]