JitterUniqueValues(Data, Npoints =20,min =0.99999, max =1.00001)
Arguments
Data: [1:n] vector of data
Npoints: number of jittered points generated from the m unique values of the datavector Data
min: minimum value of jittering
max: maximum value of jittering
Details
min and max are either multiplied or added to data depending on the range of values. If Npoints==2, then only two values per unique of Data is jittered otherwise additional values are generated.Npoints==1 does not jitter the values but gives the unique values back.
Returns
vector of DataJitter[1:(m+Npoints-1)] jittered values