class DNA: individuals' 'DNA' defined as a string of bits
More...
class DNA: individuals' 'DNA' defined as a string of bits
Definition at line 35 of file DNA.py.
◆ __init__()
def Evolife.Genetics.DNA.DNA.__init__ |
( |
|
self, |
|
|
|
Scenario, |
|
|
|
Nb_nucleotides |
|
) |
| |
◆ 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.
◆ nb_nucleotides
Evolife.Genetics.DNA.DNA.nb_nucleotides |
◆ Scenario
Evolife.Genetics.DNA.DNA.Scenario |
The documentation for this class was generated from the following file: