added code for calculating noise covariance for process