Fixed parenthesis typos
parent
21e52f3ab1
commit
08b87be4b5
|
@ -105,7 +105,7 @@ struct FastSetTestableHelper {
|
|||
typename Set::const_iterator it2 = set2.begin();
|
||||
while (it1 != set1.end()) {
|
||||
if (it2 == set2.end() ||
|
||||
fabs((double)(*it1) - (double)(*it2) > tol))
|
||||
fabs((double)(*it1) - (double)(*it2)) > tol)
|
||||
return false;
|
||||
++it1;
|
||||
++it2;
|
||||
|
|
|
@ -59,7 +59,7 @@ Gaussian::shared_ptr Gaussian::Covariance(const Matrix& covariance, bool smart)
|
|||
size_t i,j;
|
||||
for (i = 0; i < m; i++)
|
||||
for (j = 0; j < n; j++)
|
||||
if (i != j && fabs(covariance(i, j) > 1e-9)) goto full;
|
||||
if (i != j && fabs(covariance(i, j)) > 1e-9) goto full;
|
||||
Vector variances(n);
|
||||
for (j = 0; j < n; j++) variances(j) = covariance(j,j);
|
||||
return Diagonal::Variances(variances,true);
|
||||
|
|
Loading…
Reference in New Issue