|
I have data that looks like this:
1D lanes of streams of data. Each row signifies the presence of a thing at that time with a 1 or a 0. Things tend to exist in consecutive chunks across the stream. The vertical order of the rows doesn't matter, patterns can occur between any set of rows. I am seeking patterns where dimensions coincide at two or more indices, both at the start of '1' group's, and also where any '1' groups overlap across all rows/dimensions. Pattern can be offset with nearby adjacent indices, if it's proportion is maintained. D = Dimension/Row N = Index in stream (( D1(N), D25(N+4), D900(N-1) ), ( 3, 67, 90, 3000 )) An example of a pattern match that migh occur at multiple places. Dimension01 at N, Dimension25 at index N + 4, Dimension900 at index N -1 occur at indices 3, 67, 90 and 3000. The returned patterns:
How can I go about this? |