Skip to contents

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.

Usage

rosario(numvec)

Arguments

numvec

Numeric vector representing a single biological identity' distributions across ordered time intervals.

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
#>