Fixed a bug pointed out by Daniel Girardeau-Montaut. The covariance() function

didn't work on non-double valued matrices.
This commit is contained in:
Davis King 2014-03-17 18:17:26 -04:00
parent 723793ebf6
commit 5b2f853c01
1 changed files with 1 additions and 1 deletions

View File

@ -1608,7 +1608,7 @@ namespace dlib
typename visual_studio_sucks_cov_helper<EXP>::type cov(m(0).nr(),m(0).nr());
set_all_elements(cov,0);
const matrix<double,EXP::type::NR,EXP::type::NC, typename EXP::mem_manager_type> avg = mean(m);
const typename EXP::type avg = mean(m);
for (long r = 0; r < m.nr(); ++r)
{