Use MathUtils to compare doubles instead of testing for equality
This commit is contained in:
parent
9a4486a9e6
commit
8942406aa2
|
|
@ -619,7 +619,7 @@ public class PairHMMIndelErrorModel {
|
||||||
return 0; // sanity check
|
return 0; // sanity check
|
||||||
|
|
||||||
for (int i=0; i < b1.length; i++ ){
|
for (int i=0; i < b1.length; i++ ){
|
||||||
if ( b1[i]!= b2[i])
|
if ( b1[i]!= b2[i] )
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return 0; // sanity check
|
return 0; // sanity check
|
||||||
|
|
@ -630,7 +630,7 @@ public class PairHMMIndelErrorModel {
|
||||||
return 0; // sanity check
|
return 0; // sanity check
|
||||||
|
|
||||||
for (int i=0; i < b1.length; i++ ){
|
for (int i=0; i < b1.length; i++ ){
|
||||||
if ( b1[i]!= b2[i])
|
if ( MathUtils.compareDoubles(b1[i], b2[i]) != 0 )
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return 0; // sanity check
|
return 0; // sanity check
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue