Package de.uka.ipd.sdq.statistics
Class StaticBatchAlgorithm
java.lang.Object
de.uka.ipd.sdq.statistics.ABatchAlgorithm
de.uka.ipd.sdq.statistics.StaticBatchAlgorithm
- All Implemented Interfaces:
IBatchAlgorithm
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.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.statistics.ABatchAlgorithm
batches
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
offerSample
(double value) Store all values of the current batch to avoid numerical errors with sliding mean calculation.Methods inherited from class de.uka.ipd.sdq.statistics.ABatchAlgorithm
getBatchMeans, hasValidBatches, offerSamples, offerSamples, setValid
-
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.
-