I have a data file containing two columns, for example
1.1 2.2 3.1 4.5 1.2 4.5 3.2 4.6 1.1 2.3 4.2 4.9 4.2 1.1
I would like to make a histogram of two columns, i.e. get this conclusion (if the step size (or the size of the hopper , since we are talking about a histogram) is 0.1 in this case)
1.0 1.0 0 1.0 1.1 0 1.0 1.2 0 ... 1.1 1.0 0 1.1 1.1 0 1.1 1.2 0 ... 1.1 2.0 0 1.1 2.1 0 1.1 2.2 1 ... ...
Can anyone tell me something? It would be nice if I could set the range of values ββfor the masts. In the above case, the values ββof the 1st column go from 1 to 4 and are the same as for the second column.
EDITED: Updated to handle more general data input, e.g. floating numbers. The step size in the above case is 0.1, but it would be nice if it could be configured for other settings, i.e. If the range of steps ( hopper size ) is, for example, 0.2 or 1.0 . If the step size is, for example, 1.0, then if I have 1.1 and 1.8, they have the same bit, we must process them together, for example (the range in this case is 4 for both two columns 0.0. . 4.0)
1.1 1.8 2.5 2.6 1.4 2.1 1.3 1.5 3.3 4.0 3.8 3.9 4.0 3.2 4.0 4.0
( if bean size = 1.0 )
1 1 2 1 2 1 1 3 0 1 4 0 2 1 0 2 2 1 2 3 0 2 4 0 3 1 0 3 2 0 3 3 1 3 4 1 4 1 0 4 2 0 4 3 1 4 4 1
source share