Class 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 Detail

      • StaticBatchAlgorithm

        public StaticBatchAlgorithm​(int batchSize,
                                    int minNumberOfBatches)
    • Method Detail

      • 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.