We need to join every failure with its previous failure. So, first we are getting the rank in one node and in another node we are again generating rank but then adding 1 to it.
Let's say part P1 fail on 1st Jan, 2nd Feb, and 3rd march. Now, we want to join 1st with 2nd and 2nd with 3rd .
RANK NODE 1 | RANK NODE 2 | ||||
Date | Rank | Date | Rank | Rank 2 | |
1-Jan | 1 | 1-Jan | 1(+1) | 2 | |
2-Feb | 2 | 2-Feb | 2(+1) | 3 | |
3-Mar | 3 | 3-Mar | 3(+1) | 4 |
If you join these two data set with rank , then 2nd record on the left side would come together with first record on the right side and so on. Then we can determine the difference between 2nd Feb and 1st of Jan .
Hope this helps.
Regards
Anindya