Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Genetics.DNA.DNA Class Reference

class DNA: individuals' 'DNA' defined as a string of bits More...

Inheritance diagram for Evolife.Genetics.DNA.DNA:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, Scenario, Nb_nucleotides)
 
def DNAfill (self, Nucleotides)
 fills the DNA with given Nucleotides More...
 
def hybrid (self, mother, father, number_crossover=-1)
 builds the child's DNA from the parents' DNA More...
 
def mutate (self, mutation_rate=-1)
 computing the expected number of mutations More...
 

Public Attributes

 Scenario
 
 nb_nucleotides
 

Detailed Description

class DNA: individuals' 'DNA' defined as a string of bits

Definition at line 35 of file DNA.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Genetics.DNA.DNA.__init__ (   self,
  Scenario,
  Nb_nucleotides 
)

Reimplemented in Evolife.Genetics.Genome.Genome, and Evolife.Ecology.Individual.EvolifeIndividual.

Definition at line 39 of file DNA.py.

Member Function Documentation

◆ DNAfill()

def Evolife.Genetics.DNA.DNA.DNAfill (   self,
  Nucleotides 
)

fills the DNA with given Nucleotides

Definition at line 50 of file DNA.py.

◆ hybrid()

def Evolife.Genetics.DNA.DNA.hybrid (   self,
  mother,
  father,
  number_crossover = -1 
)

builds the child's DNA from the parents' DNA

Definition at line 59 of file DNA.py.

◆ mutate()

def Evolife.Genetics.DNA.DNA.mutate (   self,
  mutation_rate = -1 
)

computing the expected number of mutations

Definition at line 82 of file DNA.py.

Member Data Documentation

◆ nb_nucleotides

Evolife.Genetics.DNA.DNA.nb_nucleotides

Definition at line 41 of file DNA.py.

◆ Scenario

Evolife.Genetics.DNA.DNA.Scenario

Definition at line 40 of file DNA.py.


The documentation for this class was generated from the following file: