Commit 36286522 authored by Victor's avatar Victor
Browse files

changing ABMEv to EVOID

parent 2e59063c
Pipeline #99039 canceled with stage
......@@ -55,7 +55,7 @@ The invasion fitness `` f(x,y) `` corresponds to the fitness of a mutant with tr
f(x,y) &= b(y)\left( 1 - \frac{\alpha(x,y)K(x)}{K(y)} \right)
\end{aligned}
```
> :gun: Plot the fitness function in the case of the ABMEv
> :gun: Plot the fitness function in the case of the EVOID
## Canonical equation for the Adaptive Dynamics
```math
\frac{d\, x}{d \, t} = m(x) D(x) \tag{2}
......
......@@ -21,7 +21,7 @@ p_default = Dict(
na_init = K0
world0 = new_world_G(na_init,p_default,spread = .01)
```
![ABMEv_div_t4000](uploads/3a49ff4fe4db161bf360eea97694ff26/ABMEv_div_t4000.png)
![EVOID_div_t4000](uploads/3a49ff4fe4db161bf360eea97694ff26/EVOID_div_t4000.png)
### Constant birth coefficient, Gaussian carrying capacity
```julia
a = 0;
......@@ -41,7 +41,7 @@ p_default = Dict(
"dt_saving" => 20.0)
na_init = K0
```
![ABMEv_bis_div.ong](uploads/8e1f821923afd74902b3ec6567a1736d/ABMEv_bis_div.ong.png)
![EVOID_bis_div.ong](uploads/8e1f821923afd74902b3ec6567a1736d/EVOID_bis_div.ong.png)
> what you could do would be to plot the adaptive dynamics of the monomorphic populations
### Quadratic birth rate
......@@ -67,7 +67,7 @@ na_init = K0
#### Equivalence
![PDE_quad_termsol](uploads/c1f5c670a9d82df1349ed473b9954135/PDE_quad_termsol.png)
![ABMEv_quad_time_average_distrib_deep_time](uploads/2613b1f5e919fdbc7ee3386c680a1908/ABMEv_quad_time_average_distrib_deep_time.png)
![EVOID_quad_time_average_distrib_deep_time](uploads/2613b1f5e919fdbc7ee3386c680a1908/EVOID_quad_time_average_distrib_deep_time.png)
## No diversification
```Julia
......
# Space as a discrete segement
using UnPack,ABMEv
using UnPack,EVOID
nodes = 10
mysegment = DiscreteSegment(1,nodes)
......
# Dynamic graph
using UnPack,ABMEv,LightGraphs
using UnPack,EVOID,LightGraphs
nodes = 10
g1 = LightGraphs.grid(Int8[9,1])
g2 = SimpleGraph(Int8(9))
......
using ABMEv,LightGraphs,UnPack
using EVOID,LightGraphs,UnPack
##### Genotype space#####
nodes = 9
......@@ -67,7 +67,7 @@ end
d_i = [ (_d_i .- minimum(_d_i)) ./ (maximum(_d_i) .- minimum(_d_i)) for _d_i in d_i ]
anim = @animate for i in 1:length(d_i)
Plots.scatter(collect(1:nodes),ones(nodes),
markercolor=ABMEv.eth_grad_small[d_i][i],
markercolor=EVOID.eth_grad_small[d_i][i],
markersize = 40,
grid = false,
xaxis = false,
......
using ABMEv,Plots,UnPack
using EVOID,Plots,UnPack
nodes = 9
......
using ABMEv,UnPack,Plots
using EVOID,UnPack,Plots
myspace = (RealSpace{1,Float64}(),)
σ_b = .9;
......
using ABMEv,UnPack,Plots
using EVOID,UnPack,Plots
myspace = (RealSpace{1,Float64}(),)
σ_b = .9;
......
......@@ -2,7 +2,7 @@
# this example implements a birth rate that is time dependent
##############################
using ABMEv,UnPack
using EVOID,UnPack
using Plots
ω = 2* π / 150 # angular frequency
......
using ABMEv
using EVOID
using LightGraphs
using Plots
......
__precompile__(false)
module ABMEv
module EVOID
using Distributions,LinearAlgebra,Reexport,StatsBase
using LightGraphs
using UnPack
using DocStringExtensions
using Arpack
include("ABMEv_Space.jl")
include("ABMEv_Agent.jl")
include("ABMEv_world.jl")
include("ABMEv_Sim.jl")
include("ABMEv_metrics.jl")
include("ABMEv_plot.jl")
include("ABMEv_utils.jl")
include("algo/ABMEv_WF.jl")
include("algo/ABMEv_Gillepsie.jl")
include("algo/ABMEv_CFM.jl")
include("ABMEv_runworld.jl")
include("Space.jl")
include("Agent.jl")
include("world.jl")
include("Sim.jl")
include("metrics.jl")
include("plot.jl")
include("utils.jl")
include("algo/WF.jl")
include("algo/Gillepsie.jl")
include("algo/CFM.jl")
include("runworld.jl")
@reexport using Distributions, DataFrames
......
......@@ -3,7 +3,7 @@ using Colors
import KernelDensity:kde,pdf
"""
function plot(sim::Simulation;trait = 1)
Plot recipe for ABMEv.jl
Plot recipe for EVOID.jl
# ARGS
- if `length(trait) == 1` then we scatter plot `trait` along time
- if `2 <= length(trait) <= 3` then we project world of the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment