Class EvolutionInit<G extends Gene<?,​G>>

    • Method Detail

      • population

        public ISeq<Genotype<G>> population()
        Return the initial population.
        Returns:
        the initial population
      • generation

        public long generation()
        Return the generation of the start population.
        Returns:
        the start generation
      • of

        public static <G extends Gene<?,​G>> EvolutionInit<G> of​(ISeq<Genotype<G>> population,
                                                                      long generation)
        Create a new evolution start object with the given population and for the given generation.
        Type Parameters:
        G - the gene type
        Parameters:
        population - the start population.
        generation - the start generation of the population
        Returns:
        a new evolution start object
        Throws:
        NullPointerException - if the given population is null.
        IllegalArgumentException - if the given generation is smaller then one