/** * {@inheritDoc} */ @Override public synchronized void setWindowSize(int windowSize) throws MathIllegalArgumentException { super.setWindowSize(windowSize); }
/** * Construct a DescriptiveStatistics instance with the specified window * * @param window the window size. * @throws MathIllegalArgumentException if window size is less than 1 but * not equal to {@link #INFINITE_WINDOW} */ public DescriptiveStatistics(int window) throws MathIllegalArgumentException { setWindowSize(window); }
/** * */ public SamplerMetric() { // Limit to sliding window of SLIDING_WINDOW_SIZE values for FIXED mode if (WINDOW_MODE == WindowMode.FIXED) { for (DescriptiveStatistics stat : windowedStats) { stat.setWindowSize(SLIDING_WINDOW_SIZE); } } }
/** * Construct a DescriptiveStatistics instance with the specified window * * @param window the window size. * @throws MathIllegalArgumentException if window size is less than 1 but * not equal to {@link #INFINITE_WINDOW} */ public DescriptiveStatistics(int window) throws MathIllegalArgumentException { setWindowSize(window); }
/** * {@inheritDoc} */ @Override public synchronized void setWindowSize(int windowSize) throws MathIllegalArgumentException { super.setWindowSize(windowSize); }
int i = 0; DescriptiveStatistics stats = new SynchronizedDescriptiveStatistics(); stats.setWindowSize(dperiods); File f = new File(""); BufferedReader in = new BufferedReader(new FileReader(f));