Total duration over which true and inferred segmentations disagree on state
Source:R/plot.R
duration_of_difference.RdSweeps two segmentations (true and CPLASS-inferred) simultaneously with a two-pointer merge over their changepoints and sums the overlap duration where the two disagree on motile/stationary state.