Arrays to threshold
sine wave
x
y
z
Operation
<
>
Treshold value