Translate numpy digitize function into c#

前端 未结 0 1880
悲&欢浪女
悲&欢浪女 2020-12-23 13:41

Below code is from python -

x = np.array([0.8, 6.9, 3.5, 1.9])
bins = np.array([0.0, 1.0, 2.5, 4.0, 10.0])
inds = np.digitize(x, bins)
print(inds)
array([1, 4         


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