Check for finite pairing error rate
This commit is contained in:
@@ -245,11 +245,11 @@ public class Simulator implements GraphModificationFunctions {
|
|||||||
//rate of pairing error
|
//rate of pairing error
|
||||||
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
|
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
|
||||||
BigDecimal pairingErrorRateTrunc;
|
BigDecimal pairingErrorRateTrunc;
|
||||||
if(!Double.isFinite(pairingErrorRate)) {
|
if(Double.isFinite(pairingErrorRate)) {
|
||||||
pairingErrorRateTrunc = new BigDecimal(-1, mc);
|
pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
|
pairingErrorRateTrunc = new BigDecimal(-1, mc);
|
||||||
}
|
}
|
||||||
//get list of well populations
|
//get list of well populations
|
||||||
Integer[] wellPopulations = data.getWellPopulations();
|
Integer[] wellPopulations = data.getWellPopulations();
|
||||||
|
|||||||
Reference in New Issue
Block a user