samples.random
Class CoarseProportionRandomListGenerator

java.lang.Object
  extended by samples.random.RandomListGenerator
      extended by samples.random.ProportionRandomListGenerator
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class samples.random.RandomListGenerator
RandomListGenerator.Structure
 
Field Summary
 
Fields inherited from class samples.random.ProportionRandomListGenerator
nbAllowedOverflows, nbCurrentOverflows, nbMaxOccurences, nbWishedOccurences, OCCURENCES_LIMIT
 
Fields inherited from class samples.random.RandomListGenerator
fixedTuple, LOGGER, nbMaxValues, nbOccurences, nbValues, random, requiredFixedTuple, seed, tupleLength, tupleRepetition, tuples, type, valueRepetition
 
Constructor Summary
CoarseProportionRandomListGenerator(int[] nbValues, long seed)
          Builds a coarse proportion random list generator.
CoarseProportionRandomListGenerator(int nb, int tupleLength, long seed)
          Builds a coarse proportion random list generator.
 
Method Summary
protected  void makeSelection()
          Makes the selection of the given number of tuples.
 
Methods inherited from class samples.random.ProportionRandomListGenerator
displayTuples, fixLimits, mustTupleWait, mustValueWait, restoreNbOccurrences, selectTuples, selectTuples, storeNbOccurrences
 
Methods inherited from class samples.random.RandomListGenerator
cnp, computeNbArrangementsFrom, computeNbCombinationsFrom, computeNbCombinationsFrom, computeNbDistinctTuples, getSelectionDescription, getTuples, saveElements, setParameters, updateNbValueOccurencesFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 tuples
seed - 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 tuples
tupleLength - the length of each tuple
seed - the seed used to generate random numbers
Method Detail

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.