PROCREATE: Generate new generation of agents

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/PROCREATE.R

Description

Generate new generation of agents if (to be) parent generation is old enough.

Usage

1
PROCREATE(speakerID, hearerID)

Arguments

speakerID

Pointer to first parent

hearerID

Pointer to second parent

Details

New generation is mix of vocabularies of parents (if world$crossover is T), with emptied usage histories. Agents procreate after number of utterances specified by world$procreationAge. Meanings of words that have not been used by their parents are modified slightly.

Value

Set of new agents

Author(s)

Sander Lestrade

See Also

TALK

Examples

1
2
3
FOUND()
population[[1]]$age=population[[2]]$age=world$procreationAge*world$deathAge+1
PROCREATE(1,2)

MoLE documentation built on Nov. 17, 2017, 8 a.m.