T - the type of the RandomGeneratorpublic abstract class GeneratorFactoryBase<T extends org.apache.commons.math3.random.RandomGenerator> extends Object implements RandomGenerableFactory<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMUM_BLOCK_COUNT |
| Constructor and Description |
|---|
GeneratorFactoryBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
getMinimumCyclesPerBlock() |
List<BlockInfo<T>> |
getRandomGenerables(long elementCount,
int cyclesPerElement)
The amount of work (
elementCount * cyclesPerElement) is used to
generate a list of blocks of work of near-equal size. |
protected abstract RandomGenerable<T> |
next() |
public static final int MAXIMUM_BLOCK_COUNT
protected abstract int getMinimumCyclesPerBlock()
protected abstract RandomGenerable<T> next()
public List<BlockInfo<T>> getRandomGenerables(long elementCount, int cyclesPerElement)
RandomGenerableFactoryelementCount * cyclesPerElement) is used to
generate a list of blocks of work of near-equal size.getRandomGenerables in interface RandomGenerableFactory<T extends org.apache.commons.math3.random.RandomGenerator>elementCount - number of elements, as indexed in the BlockInfocyclesPerElement - number of cycles of the PRNG per elementCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.