prio-data / views_transformation_library

The data transformation library used by the views data transformer service
Other
1 stars 1 forks source link

Rolling window boolean (onset / termination) #7

Open Peder2911 opened 3 years ago

Peder2911 commented 3 years ago

A "rolling window boolean" is a convolution of a 2-d vector, combined with a boolean operation. This transform allows us to expose "onset" and "termination" transformations, where each value is the product of either the preceding or the following value:

0,0,1,1,1,0,0

results in

0,0,1,0,0,0,0

or

0,0,0,0,0,1,0

The crafty user would maybe "implement" this themselves by combining conditional and delta transforms (change in gt_0/lt_1)

Peder2911 commented 3 years ago

This is added via a port from ViEWS 2 I think. Demonstration remains.