to compute covariance from epochs