This function adds a random uniform vector of the same length as the input to modify the input.
Usage
dojitter(x, amount = 0)
Arguments
x
a vector to be jittered (e.g. a gridpoint vector).
amount
a value of how much to jitter the vector x.
Value
jx
the jittered version of x
Details
The function creates length(x) samples from a uniform[-amount,amount], and adds these to the original vector x. If amount=0, the new vector jx is the same as the original vector.