This commit is contained in:
2022-02-22 22:10:09 -06:00
parent f8167b0774
commit a7afeb6119
3 changed files with 15 additions and 10 deletions

View File

@@ -249,13 +249,13 @@ public class Simulator {
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
BigDecimal pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
//get list of well concentrations
List<Integer> wellPopulations = Arrays.asList(data.getWellConcentrations());
Integer[] wellPopulations = data.getWellConcentrations();
//make string out of concentrations list
StringBuilder populationsStringBuilder = new StringBuilder();
populationsStringBuilder.append(wellPopulations.remove(0).toString());
for(Integer i: wellPopulations){
populationsStringBuilder.append(wellPopulations[0].toString());
for(int i = 1; i < wellPopulations.length; i++){
populationsStringBuilder.append(", ");
populationsStringBuilder.append(i.toString());
populationsStringBuilder.append(wellPopulations[i].toString());
}
String wellPopulationsString = populationsStringBuilder.toString();
//total simulation time