I have the following lines of data in the file (of course much more lines):
data1 0.20
data2 2.32
data3 0.02
dataX x.xx
data1 1.13
data2 3.10
data3 0.96
dataX x.xx
....
I'd like to create probability distribution for each data*. I can do that by hand but maybe there is a library which let me do that more automatically. Ideally I would like to avoid preformatting lines (and feed the library with the above lines but if it is not possible I will have to).
UPDATE
Sorry for inaccuracy. What I wanted to find is how many numbers fall into custom ranges. Example:
[0.0 - 0.1) - 2 numbers;
[0.1 - 0.2) - 3 numbers;
[0.2 - 0.3) - ...
Of course I would like to easily set different ranges (wider or narrower) and then - having that - I would like to generate charts.