Given the number of transitions between milestones i and j as N ij , with the i th milestone as the last milestone the trajectory has interacted with, and R i represents the duration the trajectory has spent in the particular milestone, the expressions for q ii and q ij are given by equations 3 and 4 respectively.