BasicGenome
org.encog.ml.ea.genome

Class BasicGenome

    • Constructor Detail

      • BasicGenome

        public BasicGenome()
    • Method Detail

      • getAdjustedScore

        public double getAdjustedScore()
        Description copied from interface: Genome
        Get the adjusted score, this considers old-age penalties and youth bonuses. If there are no such bonuses or penalties, this is the same as the score.
        Specified by:
        getAdjustedScore in interface Genome
        Returns:
        The adjusted score, which considers bonuses.
      • getBirthGeneration

        public int getBirthGeneration()
        Specified by:
        getBirthGeneration in interface Genome
        Returns:
        the birthGeneration
      • getScore

        public double getScore()
        Specified by:
        getScore in interface Genome
        Returns:
        The score.
      • setAdjustedScore

        public void setAdjustedScore(double theAdjustedScore)
        Set the adjusted score.
        Specified by:
        setAdjustedScore in interface Genome
        Parameters:
        theAdjustedScore - The score.
      • setBirthGeneration

        public void setBirthGeneration(int birthGeneration)
        Description copied from interface: Genome
        Set the birth genertion (or iteration).
        Specified by:
        setBirthGeneration in interface Genome
        Parameters:
        birthGeneration - the birthGeneration to set
      • setPopulation

        public void setPopulation(Population thePopulation)
        Description copied from interface: Genome
        Set the population that this genome belongs to.
        Specified by:
        setPopulation in interface Genome
        Parameters:
        thePopulation - the population to set
      • setScore

        public void setScore(double theScore)
        Set the score.
        Specified by:
        setScore in interface Genome
        Parameters:
        theScore - Set the score.
      • setSpecies

        public void setSpecies(Species s)
        Description copied from interface: Genome
        Set the species for this genome.
        Specified by:
        setSpecies in interface Genome
        Parameters:
        s - the species to set

SCaVis 1.7 © jWork.org