Package org.evoludo.simulator.modules
Class SpeciesUpdate
Object
SpeciesUpdate
The implementation of population updates. Population updates are used to update
the population size and composition of individuals.
The population update type can be set to one of the following:
- synchronous
- Synchronized population updates.
- Wright-Fisher
- Wright-Fisher process (synchronous)
- asynchronous
- Asynchronous population updates (default).
- Bd
- Moran process (birth-death, asynchronous).
- dB
- Moran process (death-birth, asynchronous).
- imitate
- Moran process (imitate, asynchronous).
- ecology
- Asynchronous updates (non-constant population size).
The population update type can be set via the command line option
--popupdate <u> [<p>]
where <u>
is the population update type, and
<p>
the fraction of individuals that reassess their strategy.
- Author:
- Christoph Hauert
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of species updates (only relevant for multi-species models): size focal species selected proportional to their size fitness focal species selected proportional to their total fitness turns one species is selected after another. sync simultaneous updates of all species (not yet implemented). For size and fitness selection is also proportional to the update rate of each species. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CLOption
Command line option to set the method for updating the population(s).(package private) Module
The module that is using this species update.(package private) double[]
The rates at which the different species are updated.(package private) SpeciesUpdate.Type
The species update type. -
Constructor Summary
ConstructorsConstructorDescriptionSpeciesUpdate
(Module module) Instantiate new population update for use in IBSmodel
s. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Gets the population update type.boolean
setType
(SpeciesUpdate.Type type) Sets the population update type.toString()
-
Field Details
-
module
Module moduleThe module that is using this species update. -
rate
double[] rateThe rates at which the different species are updated. -
type
SpeciesUpdate.Type typeThe species update type.- See Also:
-
clo
Command line option to set the method for updating the population(s).- See Also:
-
-
Constructor Details
-
SpeciesUpdate
Instantiate new population update for use in IBSmodel
s.- Parameters:
module
- the module using this species update
-
-
Method Details