check_repetition
checks whether the series have identical or
near-identical repetition larger than lmin. if that is the case, throw an
error, the algorithm cannot yet handle these repetition, because variance on
the segment would be null.
check_repetition(x, lmin, rounding = FALSE, magnitude = 3)
the bivariate series to be tested
minimum length of segment
whether or not series are rounded
number of magnitude of standard deviation below which values are rounded. i.e if magnitude = 3, difference smaller than one thousandth of the standard deviation are rounded to the same value.
a boolean, TRUE if there is any repetition larger or equal to lmin.