Home
last modified time | relevance | path

Searched refs:getRandomGenerator (Results 1 – 7 of 7) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DRandomKeyMutation.java49 int rInd = GeneticAlgorithm.getRandomGenerator().nextInt(repr.size()); in mutate()
52 newRepr.set(rInd, GeneticAlgorithm.getRandomGenerator().nextDouble()); in mutate()
DGeneticAlgorithm.java96 public static synchronized RandomGenerator getRandomGenerator() { in getRandomGenerator() method in GeneticAlgorithm
145 RandomGenerator randGen = getRandomGenerator(); in nextGeneration()
DBinaryMutation.java44 int geneIndex = GeneticAlgorithm.getRandomGenerator().nextInt(origChrom.getLength()); in mutate()
DTournamentSelection.java87 int rind = GeneticAlgorithm.getRandomGenerator().nextInt(chromosomes.size()); in tournament()
DBinaryChromosome.java67 rList.add(GeneticAlgorithm.getRandomGenerator().nextInt(2)); in randomBinaryRepresentation()
DOnePointCrossover.java98 int crossoverIndex = 1 + (GeneticAlgorithm.getRandomGenerator().nextInt(length-2)); in crossover()
DRandomKey.java195 repr.add(GeneticAlgorithm.getRandomGenerator().nextDouble()); in randomPermutation()