GenotypeGroup class in Global context

The static GenePool object refers to the "selected group" as described in GenePools

13 members:

integer fitfun
integer, 0 .. 1 (false/true)
default=0

Scale fitness?

Enable fitness scaling

float fitm
float, 0 .. 10
default=2

Shift coefficient

Lower threshold: how many standard deviations below average?
(avg - n * stddev) - used for fitness shifting

float fitma
float, 1 .. 10
default=2

Scaling coefficient

The best genotype is as many times
better than the average one

string fitness
multiline string

Fitness formula

(intended for advanced users)

integer index
integer

group index

string name
string

Group name

integer size
integer

Number of items in the group

In standard.expdef, this is equivalent to the number of unique genotypes. Standard experiment definition uses the Genotype.popsiz field to indicate that some genotypes exist in multiple instances despite having only one item in the group. Other experiment definitions may create multiple copies of the same genotype.

integer totalpop
integer

Number of genotype instances

Takes into account the Genotype.popsiz field (which may give the total number of instances depending on the experiment definition)

function addGeno
returns Genotype

make Genotype from Geno

function addGeno(Geno)

create new Genotype from the supplied Geno object.
returns the created Genotype.

function delete
doesn't return a value

function delete(integer genotype_index)

delete genotype

function findGeno
returns integer

find Genotype index

function findGeno(Geno)

find Genotype matching the supplied Geno object.
returns genotype index or -1 if not found

function findUID
returns integer

find Genotype by UID

function findUID(string uid)
function get
returns Genotype

get Genotype object

function get(integer index)

Global context