Archive for July, 2010
count hits with numpy
23Jul10
I have an array where I record hits a=np.zeros(5) and an array with the indices of the hits, for example I have 2 hits on index 2 hits=np.array([2,2]) so I want to increase index 2 of a by 2
Filed under: numpy, python | Leave a Comment