#=
You have n data vectors of equal length (rowcount ๐)
๐ท๐๐ก๐โ .. ๐ท๐๐ก๐แตข .. ๐ท๐๐ก๐โ
you apply a function (StatsBase.cor) of n==2 arguments
to subsequences of span 3 (over successive triple rows)
=#
using RollingFunctions
๐ท๐๐ก๐โ = [1, 2, 3, 4, 5]
๐ท๐๐ก๐โ = [5, 4, 3, 2, 1]
๐น๐ข๐๐ = cor
๐๐๐๐ = 3
result = rolling(๐น๐ข๐๐,๐ท๐๐ก๐โ,๐ท๐๐ก๐โ, ๐๐๐๐)
#=
3-element Vector{Float64}:
-1.0
-1.0
-1.0
=#