Applied proper file formatting.
@@ -76,8 +76,12 @@ public class LocMinLoessCorrector extends BaselineCorrector {
+ ((breaks_width > 0) ? (int) Math.round((double) (maxi - mini)
/ (double) breaks_width) : breaks));
// Calculate baseline.
- rSession.eval("bseoff <- bslnoff(mat, method=\"" + method + "\", bw="
- + ((method.equals("approx") || bw >= BW_MIN_VAL) ? bw : BW_MIN_VAL) + ", breaks=breaks, qntl=" + qntl + ")");
+ // + Seems like "loess" method doesn't support "bw=0.0"
+ rSession.eval("bseoff <- bslnoff(mat, method=\""
+ + method
+ + "\", bw="
+ + ((method.equals("approx") || bw >= BW_MIN_VAL) ? bw
+ : BW_MIN_VAL) + ", breaks=breaks, qntl=" + qntl + ")");
rSession.eval("baseline <- mat[,2] - bseoff[,2]");
baseline = (double[]) rSession.collect("baseline");
