fixed coefficient type in updateCovarianceMatrix() (fixes #182)