This function is used in the data preparation (or pre-processing)
often required to apply the exploratory and inference tools based on
theory of records within this package.
The theory of records on which the hypothesis tests are based assumes
that the random variables are continuous, so that the probability
that two observations take the same value is zero. Most of the data
collected is rounded, giving a certain probability to the tie between
records, thereby reducing the number of new records (see, e.g., Wergen
et al. 2012).
This function breaks ties by adding a uniform random variable
to each element of X
. The function computes the maximum number of
decimal digits (let it be \(n\)) for any element in X
. Then the
uniform variable is sampled in the interval
\((-5 \times 10^{-(n+1)}, 5 \times 10^{-(n+1)})\), so the records in the
original (rounded) series are also records in the new series.