Package io.jenetics

Class AltererResult<G extends Gene<?,​G>,​C extends Comparable<? super C>>

    • Method Detail

      • alterations

        public int alterations()
        Return the number of altered individuals.
        Returns:
        the number of altered individuals
      • of

        public static <G extends Gene<?,​G>,​C extends Comparable<? super C>> AltererResult<G,​C> of​(Seq<Phenotype<G,​C>> population,
                                                                                                                    int alterations)
        Return a new alter result for the given arguments.
        Type Parameters:
        G - the gene type
        C - the result type
        Parameters:
        population - the altered population
        alterations - the number of altered individuals
        Returns:
        a new alterer for the given arguments
        Throws:
        NullPointerException - if the given population is null
        IllegalArgumentException - if the given alterations is negative
      • of

        public static <G extends Gene<?,​G>,​C extends Comparable<? super C>> AltererResult<G,​C> of​(Seq<Phenotype<G,​C>> population)
        Return a new alter result for the given arguments.
        Type Parameters:
        G - the gene type
        C - the result type
        Parameters:
        population - the altered population
        Returns:
        a new alterer for the given arguments
        Throws:
        NullPointerException - if the given population is null