Generate cyclic and mirrored permutations of a time series
rosario.Rd
For a numeric vector, creates the set of cyclic shifts and their mirror images (reverse order), preserving shape but changing location along the cycle. The suite of vectors and mirrors represent a complete set of possible distributions.
Value
A list of numeric vectors with all the permutations in the time series, including the mirror patterns.
Examples
rosario(c(40, 25, 18, 10, 5, 2))
#> [[1]]
#> [1] 40 25 18 10 5 2 2 5 10 18 25 40
#>
#> [[2]]
#> [1] 2 40 25 18 10 5 5 10 18 25 40 2
#>
#> [[3]]
#> [1] 5 2 40 25 18 10 10 18 25 40 2 5
#>
#> [[4]]
#> [1] 10 5 2 40 25 18 18 25 40 2 5 10
#>
#> [[5]]
#> [1] 18 10 5 2 40 25 25 40 2 5 10 18
#>
#> [[6]]
#> [1] 25 18 10 5 2 40 40 2 5 10 18 25
#>