How to find state transitions in a numpy array, from one element to the next?

前端 未结 0 1468
挽巷
挽巷 2021-02-02 03:23

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题