private void makeReg() { slope = Func.slope(data.get(dataType), x, y); slopeField.setValue(slope[0]); slopeErrField.setValue(slope[1]); rField.setValue(slope[2]); // Setting.getElement("/bat/isotope/calc/bg/factor").setText(((Double)slope[0]).toString()); // Setting.getElement("/bat/isotope/calc/bg/error").setText(((Double)slope[1]).toString()); // for (int i=0;i<data.corrList.size();i++) { // data.corrList.get(i).isoFact=(Double)slope[0]; // data.corrList.get(i).isoErr=(Double)slope[1]; // } }