Use MathUtils to compare doubles instead of testing for equality

This commit is contained in:
Ryan Poplin 2011-11-09 22:05:21 -05:00
parent 9a4486a9e6
commit 8942406aa2
1 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ public class PairHMMIndelErrorModel {
return 0; // sanity check
for (int i=0; i < b1.length; i++ ){
if ( b1[i]!= b2[i])
if ( b1[i]!= b2[i] )
return i;
}
return 0; // sanity check
@ -630,7 +630,7 @@ public class PairHMMIndelErrorModel {
return 0; // sanity check
for (int i=0; i < b1.length; i++ ){
if ( b1[i]!= b2[i])
if ( MathUtils.compareDoubles(b1[i], b2[i]) != 0 )
return i;
}
return 0; // sanity check