newRow.setFloat(“FTAge” + FTRecNo, FTAge); if (!Float.isNaN(FTErr)) { newRow.setFloat(“FTErr” + FTRecNo, FTErr); } else { newRow.setFloat(“FTErr” + FTRecNo, FTAge/10.0); } } // display progress println(); println(); println(); println(); println(); println(); println(); println(“Reformatting “ + 100*rowCount/25359 + “% complete (“ + rowCount + “/25359)”);/**/ } //////////// CALCULATE CONCORDANCE SCORES FloatList ages = new FloatList(); FloatList agesMethod = new FloatList(); FloatList error = new FloatList(); FloatList errorMethod = new FloatList(); int rowCount2 = 0; for (TableRow row : output.rows()) { rowCount2++; ages = new FloatList(); agesMethod = new FloatList(); error = new FloatList(); errorMethod = new FloatList(); float methodScore; for (int i = 0; i < 6; i++) { if (!Float.isNaN(row.getFloat(“KArAge” + (i+1)))) { ages.append(row.getFloat(“KArAge” + (i+1))); agesMethod.append(row.getFloat(“KArAge” + (i+1))); error.append(row.getFloat(“KArErr” + (i+1))); errorMethod.append(row.getFloat(“KArErr” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“KArScore”, methodScore); } row.setInt(“KArCount”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 24; i++) { if (!Float.isNaN(row.getFloat(“RbSrAge” + (i+1)))) { ages.append(row.getFloat(“RbSrAge” + (i+1))); agesMethod.append(row.getFloat(“RbSrAge” + (i+1))); error.append(row.getFloat(“RbSrErr” + (i+1))); errorMethod.append(row.getFloat(“RbSrErr” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“RbSrScore”, methodScore); } row.setInt(“RbSrCount”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 21; i++) { if (!Float.isNaN(row.getFloat(“206_238Age” + (i+1)))) { ages.append(row.getFloat(“206_238Age” + (i+1))); agesMethod.append(row.getFloat(“206_238Age” + (i+1))); error.append(row.getFloat(“206_238Err” + (i+1))); errorMethod.append(row.getFloat(“206_238Err” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“206_238Score”, methodScore); } row.setInt(“206_238Count”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 21; i++) { if (!Float.isNaN(row.getFloat(“207_235Age” + (i+1)))) { ages.append(row.getFloat(“207_235Age” + (i+1))); agesMethod.append(row.getFloat(“207_235Age” + (i+1))); error.append(row.getFloat(“207_235Err” + (i+1))); errorMethod.append(row.getFloat(“207_235Err” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“207_235Score”, methodScore); } row.setInt(“207_235Count”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 33; i++) { if (!Float.isNaN(row.getFloat(“207_206Age” + (i+1)))) { ages.append(row.getFloat(“207_206Age” + (i+1))); agesMethod.append(row.getFloat(“207_206Age” + (i+1))); error.append(row.getFloat(“207_206Err” + (i+1))); errorMethod.append(row.getFloat(“207_206Err” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“207_206Score”, methodScore); } row.setInt(“207_206Count”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 15; i++) { if (!Float.isNaN(row.getFloat(“208_232Age” + (i+1)))) { ages.append(row.getFloat(“208_232Age” + (i+1))); agesMethod.append(row.getFloat(“208_232Age” + (i+1))); error.append(row.getFloat(“208_232Err” + (i+1))); errorMethod.append(row.getFloat(“208_232Err” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“208_232Score”, methodScore); } row.setInt(“208_232Count”, agesMethod.size()); agesMethod = new FloatList(); errorMethod = new FloatList(); for (int i = 0; i < 5; i++) { if (!Float.isNaN(row.getFloat(“FTAge” + (i+1)))) { ages.append(row.getFloat(“FTAge” + (i+1))); agesMethod.append(row.getFloat(“FTAge” + (i+1))); error.append(row.getFloat(“FTErr” + (i+1))); errorMethod.append(row.getFloat(“FTErr” + (i+1))); } } methodScore = calcScore(agesMethod, errorMethod); if (!(methodScore < 0)) { row.setFloat(“FTScore”, methodScore); } row.setInt(“FTCount”, agesMethod.size()); float score = calcScore(ages, error); if (!(score < 0)) { row.setFloat(“ConcordanceScore”, score); BEACHY, KINARD AND GARNER How often do radioisotope ages agree? 2023 ICC 399
RkJQdWJsaXNoZXIy MTM4ODY=