cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/testbeds/ExperimentRunner.java
protected List<Double> computeBatchMeans(List<Double> samples) {
        if (!isApplyBatchMeansMethod()) {
            return samples;
        }

        final List<Double> batchMeans = new ArrayList<>(getNumberOfBatches());
        for (int i = 0; i < getNumberOfBatches(); i++) {
            batchMeans.add(getBatchAverage(samples, i));
        }

        System.out.printf(
                "\tBatch Means Method applied. The number of samples was reduced to %d after computing the mean for each batch.\n", getNumberOfBatches());

        return batchMeans;
    }
/**
     * Gets an list of samples and apply the "Batch Means Method" to reduce
     * samples correlation, if the "Batch Means Method"
     * {@link #isApplyBatchMeansMethod() is to be applied}.
     *
     * @param samples the list with samples to apply the "Batch Means Method".
     *                Samples size is defined by the {@link #getSimulationRuns()}.
     * @return the samples list after applying the "Batch Means Method", in case
     * the method is enabled to be applied, which will reduce the array to the
     * number of batches defined by {@link #getNumberOfBatches()} (each value in
     * the returned array will be the mean of every sample batch). Otherwise,
     * returns the same given array
     */
Gets an list of samples and apply the "Batch Means Method" to reduce
samples correlation, if the "Batch Means Method"
#isApplyBatchMeansMethod() is to be applied.

@param samples the list with samples to apply the "Batch Means Method".
Samples size is defined by the  #getSimulationRuns().
@return the samples list after applying the "Batch Means Method", in case
the method is enabled to be applied, which will reduce the array to the
number of batches defined by  #getNumberOfBatches() (each value in
the returned array will be the mean of every sample batch). Otherwise,
returns the same given array
Gets an list of samples and apply the " Batch Means Method " to reduce samples correlation if the " Batch Means Method " #isApplyBatchMeansMethod () is to be applied . @param samples the list with samples to apply the " Batch Means Method " . Samples size is defined by the #getSimulationRuns () . @return the samples list after applying the " Batch Means Method " in case the method is enabled to be applied which will reduce the array to the number of batches defined by #getNumberOfBatches () ( each value in the returned array will be the mean of every sample batch ) . Otherwise returns the same given array
protected List<Double> computeBatchMeans(List<Double> samples) {
        if (!isApplyBatchMeansMethod()) {
            return samples;
        }
        final List<Double> batchMeans = new ArrayList<>(getNumberOfBatches());
        for (int i = 0; i < getNumberOfBatches(); i++) {
            batchMeans.add(getBatchAverage(samples, i));
        }
        System.out.printf(
                "\tBatch Means Method applied. The number of samples was reduced to %d after computing the mean for each batch.\n", getNumberOfBatches());
        return batchMeans;
    }
protected List < Double > computeBatchMeans ( List < Double > samples ) { if ( ! isApplyBatchMeansMethod ( ) ) { return samples ; } final List < Double > batchMeans = new ArrayList < > ( getNumberOfBatches ( ) ) ; for ( int i = 0 ; i < getNumberOfBatches ( ) ; i ++ ) { batchMeans . add ( getBatchAverage ( samples , i ) ) ; } System . out . printf ( "\tBatch Means Method applied. The number of samples was reduced to %d after computing the mean for each batch.\n" , getNumberOfBatches ( ) ) ; return batchMeans ; }
Gets an list of samples and apply the "Batch Means Method" to reduce
 samples correlation, if the "Batch Means Method"
 {@link #isApplyBatchMeansMethod() is to be applied}.
Gets an list of samples and apply the " Batch Means Method " to reduce samples correlation if the " Batch Means Method " { @link #isApplyBatchMeansMethod () is to be applied } .