Computes the rand Index (non-adjusted) for the change point sets. A specific equation for change point detection is used to make the computation faster. Proof of correctness of the equation is given in the dissertation.
compute_rand(cp1, cp2, m)
Change point set for model 1 or true change point set.
Change point set for model 2 or true change point set.
The size of the vector array.