samples.random
Class CoarseProportionRandomListGenerator
java.lang.Object
samples.random.RandomListGenerator
samples.random.ProportionRandomListGenerator
samples.random.CoarseProportionRandomListGenerator
public class CoarseProportionRandomListGenerator
- extends ProportionRandomListGenerator
This class allows generating integer random lists using a proportion model.
This way of generating random lists do not suffer from space complexity considerations.
Fields inherited from class samples.random.RandomListGenerator |
fixedTuple, LOGGER, nbMaxValues, nbOccurences, nbValues, random, requiredFixedTuple, seed, tupleLength, tupleRepetition, tuples, type, valueRepetition |
Method Summary |
protected void |
makeSelection()
Makes the selection of the given number of tuples. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoarseProportionRandomListGenerator
public CoarseProportionRandomListGenerator(int[] nbValues,
long seed)
- Builds a coarse proportion random list generator.
- Parameters:
nbValues
- the number of values for each element of the tuplesseed
- the seed used to generate random numbers
CoarseProportionRandomListGenerator
public CoarseProportionRandomListGenerator(int nb,
int tupleLength,
long seed)
- Builds a coarse proportion random list generator.
- Parameters:
nb
- the uniform number of values used to build tuplestupleLength
- the length of each tupleseed
- the seed used to generate random numbers
makeSelection
protected void makeSelection()
- Description copied from class:
ProportionRandomListGenerator
- Makes the selection of the given number of tuples.
- Specified by:
makeSelection
in class ProportionRandomListGenerator
Copyright © 2012. All Rights Reserved.