Loading src/main/java/CalibrationHardwareInterface.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -4721,6 +4721,7 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" " if ((x<xMin) || (x>xMax)) continue; // out of range point if ((x<xMin) || (x>xMax)) continue; // out of range point data[i][0]= scale*(x - x0); // interval center data[i][0]= scale*(x - x0); // interval center double [][] metrics= this.history.get(i).getMetrics(0.0,0.0,0.0); // average is not used, any scales double [][] metrics= this.history.get(i).getMetrics(0.0,0.0,0.0); // average is not used, any scales if (metrics==null) continue; double l2= double l2= 1.0/metrics[0][indexR50]/metrics[0][indexR50]+ 1.0/metrics[0][indexR50]/metrics[0][indexR50]+ 1.0/metrics[1][indexR50]/metrics[1][indexR50]+ 1.0/metrics[1][indexR50]/metrics[1][indexR50]+ Loading Loading @@ -6129,8 +6130,12 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" " double w=0.0; double w=0.0; for (int i=0;i<weights.length;i++) w+=weights[i]; for (int i=0;i<weights.length;i++) w+=weights[i]; for (int i=0;i<weights.length;i++) weights[i]/=w; for (int i=0;i<weights.length;i++) weights[i]/=w; try { metrics[3]=new double[this.psfMetricses[this.indices[0]].length]; metrics[3]=new double[this.psfMetricses[this.indices[0]].length]; for (int c=0;c<3;c++) metrics[c]= this.psfMetricses[this.indices[c]]; for (int c=0;c<3;c++) metrics[c]= this.psfMetricses[this.indices[c]]; } catch (Exception e){ return null; } for (int i=0; i<metrics[3].length;i++) { for (int i=0; i<metrics[3].length;i++) { metrics[3][i]=0.0; metrics[3][i]=0.0; if (squared[i]){ if (squared[i]){ Loading Loading
src/main/java/CalibrationHardwareInterface.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -4721,6 +4721,7 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" " if ((x<xMin) || (x>xMax)) continue; // out of range point if ((x<xMin) || (x>xMax)) continue; // out of range point data[i][0]= scale*(x - x0); // interval center data[i][0]= scale*(x - x0); // interval center double [][] metrics= this.history.get(i).getMetrics(0.0,0.0,0.0); // average is not used, any scales double [][] metrics= this.history.get(i).getMetrics(0.0,0.0,0.0); // average is not used, any scales if (metrics==null) continue; double l2= double l2= 1.0/metrics[0][indexR50]/metrics[0][indexR50]+ 1.0/metrics[0][indexR50]/metrics[0][indexR50]+ 1.0/metrics[1][indexR50]/metrics[1][indexR50]+ 1.0/metrics[1][indexR50]/metrics[1][indexR50]+ Loading Loading @@ -6129,8 +6130,12 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" " double w=0.0; double w=0.0; for (int i=0;i<weights.length;i++) w+=weights[i]; for (int i=0;i<weights.length;i++) w+=weights[i]; for (int i=0;i<weights.length;i++) weights[i]/=w; for (int i=0;i<weights.length;i++) weights[i]/=w; try { metrics[3]=new double[this.psfMetricses[this.indices[0]].length]; metrics[3]=new double[this.psfMetricses[this.indices[0]].length]; for (int c=0;c<3;c++) metrics[c]= this.psfMetricses[this.indices[c]]; for (int c=0;c<3;c++) metrics[c]= this.psfMetricses[this.indices[c]]; } catch (Exception e){ return null; } for (int i=0; i<metrics[3].length;i++) { for (int i=0; i<metrics[3].length;i++) { metrics[3][i]=0.0; metrics[3][i]=0.0; if (squared[i]){ if (squared[i]){ Loading