Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 10, 2012
1 parent 754f1c6 commit 45cb8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/mathematics/Statistics.cpp
Expand Up @@ -64,9 +64,9 @@ SGMatrix<float64_t> CStatistics::covariance_matrix(
}
centered.remove_column_mean();

/* compute 1/m/(m-1) * X' * X */
/* compute 1/(m-1) * X' * X */
SGMatrix<float64_t> cov=SGMatrix<float64_t>::matrix_multiply(centered,
centered, true, false);
centered, true, false, 1.0/(observations.num_rows-1));

return cov;
}
Expand Down

0 comments on commit 45cb8f0

Please sign in to comment.