test_class.declarator: K = 10
test_class.modifier: public static final
test_class.original_string: public static final int K = 10;
test_class.type: int
test_class.var_name: K
test_class.declarator: population
test_class.original_string: Population population;
test_class.type: Population
test_class.var_name: population
test_class.declarator: PRECISION = 0.00000001
test_class.modifier: private static final
test_class.original_string: private static final double PRECISION = 0.00000001;
test_class.type: double
test_class.var_name: PRECISION
test_class.declarator: fitnessFunction = (Chromosome ch) -> ch.getGene(0) + ch.getGene(1)
test_class.original_string: Function<Chromosome, Double> fitnessFunction = (Chromosome ch) -> ch.getGene(0) + ch.getGene(1);
test_class.type: Function<Chromosome, Double>
test_class.var_name: fitnessFunction
test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/util/genetic/PopulationTest.java
test_class.identifier: PopulationTest
test_case.body: @Test
      public void calculateFitnessForAll() {
          population.calculateFitnessForAll(fitnessFunction);
          Assert.assertEquals(population.getChromosome(0).getFitness(), 0, PRECISION);
      }
test_case.class_method_signature: PopulationTest.calculateFitnessForAll()
test_case.full_signature: @Test public void calculateFitnessForAll()
test_case.identifier: calculateFitnessForAll
test_case.invocations: calculateFitnessForAll assertEquals getFitness getChromosome
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void calculateFitnessForAll()
focal_class.declarator: chromosomes
focal_class.modifier: private
focal_class.original_string: private Chromosome[] chromosomes;
focal_class.type: Chromosome[]
focal_class.var_name: chromosomes
focal_class.declarator: fitnessCalculatedFlags
focal_class.modifier: private
focal_class.original_string: private BitSet fitnessCalculatedFlags;
focal_class.type: BitSet
focal_class.var_name: fitnessCalculatedFlags
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/util/genetic/Population.java
focal_class.identifier: Population
focal_class.class_method_signature: Population.Population(int size)
focal_class.full_signature: public  Population(int size)
focal_class.identifier: Population
focal_class.modifiers: public
focal_class.parameters: (int size)
focal_class.signature:  Population(int size)
focal_class.class_method_signature: Population.getChromosome(int idx)
focal_class.full_signature: public Chromosome getChromosome(int idx)
focal_class.identifier: getChromosome
focal_class.modifiers: public
focal_class.parameters: (int idx)
focal_class.return: Chromosome
focal_class.signature: Chromosome getChromosome(int idx)
focal_class.class_method_signature: Population.calculateFitnessForChromosome(int idx, Function<Chromosome, Double> fitnessFunction)
focal_class.full_signature: public double calculateFitnessForChromosome(int idx, Function<Chromosome, Double> fitnessFunction)
focal_class.identifier: calculateFitnessForChromosome
focal_class.modifiers: public
focal_class.parameters: (int idx, Function<Chromosome, Double> fitnessFunction)
focal_class.return: double
focal_class.signature: double calculateFitnessForChromosome(int idx, Function<Chromosome, Double> fitnessFunction)
focal_class.class_method_signature: Population.calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)
focal_class.full_signature: public void calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)
focal_class.identifier: calculateFitnessForAll
focal_class.modifiers: public
focal_class.parameters: (Function<Chromosome, Double> fitnessFunction)
focal_class.return: void
focal_class.signature: void calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)
focal_class.class_method_signature: Population.setChromosome(int idx, Chromosome chromosome)
focal_class.full_signature: public void setChromosome(int idx, Chromosome chromosome)
focal_class.identifier: setChromosome
focal_class.modifiers: public
focal_class.parameters: (int idx, Chromosome chromosome)
focal_class.return: void
focal_class.signature: void setChromosome(int idx, Chromosome chromosome)
focal_class.class_method_signature: Population.getChromosome(Integer idx)
focal_class.full_signature: public Chromosome getChromosome(Integer idx)
focal_class.identifier: getChromosome
focal_class.modifiers: public
focal_class.parameters: (Integer idx)
focal_class.return: Chromosome
focal_class.signature: Chromosome getChromosome(Integer idx)
focal_class.class_method_signature: Population.selectBestKChromosome(int k)
focal_class.full_signature: public Chromosome[] selectBestKChromosome(int k)
focal_class.identifier: selectBestKChromosome
focal_class.modifiers: public
focal_class.parameters: (int k)
focal_class.return: Chromosome[]
focal_class.signature: Chromosome[] selectBestKChromosome(int k)
focal_class.class_method_signature: Population.getTotalFitness()
focal_class.full_signature: public double getTotalFitness()
focal_class.identifier: getTotalFitness
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getTotalFitness()
focal_class.class_method_signature: Population.getAverageFitness()
focal_class.full_signature: public double getAverageFitness()
focal_class.identifier: getAverageFitness
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getAverageFitness()
focal_class.class_method_signature: Population.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: Population.setFitness(Integer idx, Double fitness)
focal_class.full_signature: public void setFitness(Integer idx, Double fitness)
focal_class.identifier: setFitness
focal_class.modifiers: public
focal_class.parameters: (Integer idx, Double fitness)
focal_class.return: void
focal_class.signature: void setFitness(Integer idx, Double fitness)
focal_method.body: public void calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction) {
          for (int i = 0; i < chromosomes.length; i++)
              calculateFitnessForChromosome(i, fitnessFunction);
      }
focal_method.class_method_signature: Population.calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)
focal_method.full_signature: public void calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)
focal_method.identifier: calculateFitnessForAll
focal_method.invocations: calculateFitnessForChromosome
focal_method.modifiers: public
focal_method.parameters: (Function<Chromosome, Double> fitnessFunction)
focal_method.return: void
focal_method.signature: void calculateFitnessForAll(Function<Chromosome, Double> fitnessFunction)