#=
You have n data vectors of equal length (rowcount ๐)
๐ท๐๐ก๐โ .. ๐ท๐๐ก๐แตข .. ๐ท๐๐ก๐โ collected as an ๐ x ๐ matrix ๐
you want to apply the same function (sum)
to colum-wise triple row subsequences, successively
=#
using RollingFunctions
๐ท๐๐ก๐โ = [1, 2, 3, 4, 5]
๐ท๐๐ก๐โ = [5, 4, 3, 2, 1]
๐ท๐๐ก๐โ = [1, 2, 3, 2, 1]
๐ = hcat(๐ท๐๐ก๐โ, ๐ท๐๐ก๐โ, ๐ท๐๐ก๐โ);
#=
julia> ๐
5ร3 Matrix{Int64}:
1 5 1
2 4 2
3 3 3
4 2 2
5 1 1
=#
๐น๐ข๐๐ = sum
๐๐๐๐ = 3
result = rolling(๐น๐ข๐๐, ๐, ๐๐๐๐)
#=
julia> result
3ร3 Matrix{Int64}:
6 12 6
9 9 7
12 6 6
=#