I have a numpy array of samples, [0, 0, 2.5, -5.0, ...]. In my case all samples are multiples of 2.5. I want tot know how many times each sample occurs. More or less like numpy.hist. In this case something like: [[-5.0, 1], [0, 2], [2.5, 1], ...].
I have a numpy array of samples, [0, 0, 2.5, -5.0, ...]. In my case all samples are multiples of 2.5. I want tot know how many times each sample occurs. More or less like numpy.hist. In this case something like: [[-5.0, 1], [0, 2], [2.5, 1], ...].