if(log.isInfoEnabled()) log.info("window_size=" + this.window_size +
if(log.isDebugEnabled()) log.debug("window_size=" + this.window_size +
    public void setWindowSize(int window_size, int min_threshold) {        this.window_size = window_size;        this.min_threshold = min_threshold;        // sanity tests for the 2 values:        if (min_threshold > window_size) {            this.min_threshold = window_size;            this.window_size = min_threshold;            if(log.isWarnEnabled()) log.warn("min_threshold (" + min_threshold +                    ") has to be less than window_size ( " + window_size + "). Values are swapped");        }        if (this.window_size <= 0) {            this.window_size = this.min_threshold > 0 ? (int) (this.min_threshold * 1.5) : 500;            if(log.isWarnEnabled()) log.warn("window_size is <= 0, setting it to " + this.window_size);        }        if (this.min_threshold <= 0) {            this.min_threshold = this.window_size > 0 ? (int) (this.window_size * 0.5) : 250;            if(log.isWarnEnabled()) log.warn("min_threshold is <= 0, setting it to " + this.min_threshold);        }            if(log.isInfoEnabled()) log.info("window_size=" + this.window_size +                    ", min_threshold=" + this.min_threshold);        use_sliding_window = true;    }