Class StaticBatchAlgorithm

java.lang.Object
de.uka.ipd.sdq.statistics.ABatchAlgorithm
de.uka.ipd.sdq.statistics.StaticBatchAlgorithm
All Implemented Interfaces:
IBatchAlgorithm

public class StaticBatchAlgorithm extends ABatchAlgorithm
Batch means algorithm with manually configured batch size. Specify the size of each batch and the minimum number of batches. It will then provide the mean values for the defined batches to the simulation.
  • Constructor Details

    • StaticBatchAlgorithm

      public StaticBatchAlgorithm(int batchSize, int minNumberOfBatches)
  • Method Details

    • offerSample

      public void offerSample(double value)
      Store all values of the current batch to avoid numerical errors with sliding mean calculation. Should not be too many values in one batch.