Agent

EvoId.AgentMethod
Agent(s; ancestors=false)
Agent(s, pos, Rtype=Float32; ancestors=false)
Agent(s, pos_t, t, Rtype=Float32; ancestors=false)

Returns an Agent living on the underlying space s with initial position pos. If pos not provided, initialises agent with 0 values everywhere

Arguments

  • s
  • pos
  • pos_t
  • Rtype: type of rate. Should correspond to the type

of the output birth and death function for code optimisation.

Keyword arguments

is required for the Gillepsie algorithm, but not for CFM algorithm

  • ancestors. Set ancestors=true when you want to store ancestors traits.
source
EvoId.increment_x!Method
increment_x!(a, s, D, mu, t)

This function increments (i.e. mutates) agent a according to D, mu. Note: for a::AgentwithAncestors, an extra row is added, since increment_x! is called for birth events after copying the mum traits. Mum traits are therefore Ancestors traits.

source