I would like to identify state transitions in a data set. An example is: "At which index does the sin(x) fall below 0.5?"
The only way I could think of is like