I need to calculate the following;
create the results in two new files:
File1 : contains the only results from id:2 ($7) [ ------- 2 10.0] AND time ($2) AND d ($1).
File2 : contains the only results from id: 1 ($7) [ ------- 1 30.0] AND time ($2) AND d ($1).
Then I need to calculate on each file number of occurances of "d" with relate to time and only from 1 2: explained down:
------------------------------------------------------------
d Time from To Id
-------------------------------------------------------------
d 6.07922 1 2 cbr 210 ------- 1 30.0 2.27 58 19217
-------------------------------------------------------------
expected output
------------------------------------------------------------
time from to NumberOfOccurance
------------------------------------------------------------
6.07922 1 2 13
------------------------------------------------------------
Yes, The numbers are number of occurrence of "d" for each period of time for example (0.1-0.2)
so, if we calculate number of occurrence we can say " we have 5 "d" in period 0.2
and 10 "d" in 0.3 and so on>
0.1 1--> number of occurrence
0.2 5--> number of occurrence
0.3 10 ->number of occurrence
0.4 7 --> number of occurrence