public class SamplingOperationMixRunner extends AbstractOperationMixRunner
The sample is configurable and may be larger/smaller than the size of the mixes to be run, optionally the sample may include repeats of operations.
In the case where random order is disabled and the sample size is smaller
than the mix size only the first N
operations (where N
is the
sample size) will be run and the remaining operations will never be run.
In the case where the desired sample size is larger than the mix size but repeats are not allowed then the actual sample size will be the same as the mix size and every operation will be run precisely once.
Constructor and Description |
---|
SamplingOperationMixRunner(boolean allowRepeats)
Creates a sampling mix runner which optionally allows repeats, the sample
size will always be the mix size
|
SamplingOperationMixRunner(int sampleSize)
Creates a sampling mix runner with the given sample size
|
SamplingOperationMixRunner(int sampleSize,
boolean allowRepeats)
Creates a sampling mix runner with the given sample size that optionally
allows repeats
|
public SamplingOperationMixRunner(int sampleSize)
sampleSize
- Sample size, if <= 0 then sample size will always be the mix
sizepublic SamplingOperationMixRunner(boolean allowRepeats)
allowRepeats
- Whether to allow repeatspublic SamplingOperationMixRunner(int sampleSize, boolean allowRepeats)
sampleSize
- Sample size, if <= 0 then sample size will always be the mix
sizeallowRepeats
- Whether to allow repeatsCopyright © 2016. All rights reserved.