jeudi 31 octobre 2019

counting elements in randomly generated binsize

I have generated a list of random extracted numbers

max = 1000;
rnorms2 = RandomVariate[UniformDistribution[{0, max}], 100];

I would like to count the number of elements that fall into randomly generated intervals. I generated the intervals as such:

t0 = 0;
tmax = 1000;
rnorms1 = Sort[RandomVariate[UniformDistribution[{t0, tmax}], 10]]

So that I could count the elements that fall between the i-th and the i+1-th element of rnorms1. I suppose I should use the Count function, but I am not sure how... can someone help?

thanks




Aucun commentaire:

Enregistrer un commentaire