My problem is pretty simple. I have an array of floats with random values. And I would like to find the number of occurences of values in the array.

For example.

```
float data[] = {1.1,1.1,1.1,
              2.1,2.1,2.1,
              3.1,3.1,3.1,
              4.1,4.1,4.1,
              5.1,5.1,5.1,
              1.5,1.5,1.5,
              3.2,3.2,3.2};

```

Is there some kind of range histogram function in the standard library or the boost library that will return me the number of occurences of the values. In the above example,

```
0-1 -> 0 times
1-2 -> 6 times
2-3 -> 3 times
3-4 -> 6 times
4-5 -> 3 times

```