How to find a distance between elements in numpy array?

后端 未结 0 368
旧巷少年郎
旧巷少年郎 2021-01-24 23:55

I have such array z: array([1, 0, 1, 0, 0, 0, 1, 0, 0, 1])

How to find a distances between two successive 1s in this array? (measur

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