Package org.evoludo.simulator.models
Interface Model.HasDE
- All Known Subinterfaces:
Model.HasDE.DPairs,Model.HasDE.EM,Model.HasDE.ODE,Model.HasDE.PDE,Model.HasDE.PDEADV,Model.HasDE.PDERD,Model.HasDE.RK5,Model.HasDE.SDE
- All Known Implementing Classes:
ATBT,CDL,CDLP,CDLPQ,DemesTBT,EcoPGG,LV,Moran,Predator,RSP,simCDL,simCDLP,simCDLPQ,simMoran,simTBT,simTraits,SIR,TBT,Traits
- Enclosing class:
Model
public static interface Model.HasDE
Methods that every
Module must implement, which advertises numerical
solutions based on differential equations.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for differential equation models with interactions in groups of arbitrary size.static interfaceInterface for differential equation models with pairwise interactions.static interfaceInterface for modules that support differential equation models with both frequency and density based dynamics.static interfaceInterface for ordinary differential equation models using the Euler-Maruyama method.static interfaceInterface for ordinary differential equation models; defaults to RK5.static interfaceInterface for partial differential equation models; defaults to PDERD.static interfaceInterface for reaction-diffusion-advection partial differential equation models.static interfaceInterface for reaction-diffusion partial differential equation models.static interfaceInterface for ordinary differential equation models using the fifth order Runge-Kutta method.static interfaceInterface for stochastic differential equation models. -
Method Summary
Modifier and TypeMethodDescriptionintFor replicator dynamics the frequencies of all traits must sum up to one.
-
Method Details
-
getDependent
int getDependent()For replicator dynamics the frequencies of all traits must sum up to one. Hence, fornTraitstraits there are onlynTraits-1degrees of freedom. The index returned bygetDependent()marks the one rate of change that is derived from all the others.Notes:
- Dependent traits are used by models where the frequencies of all types must sum up to one.
- Density modules do not have dependent traits and
getDependent()should return-1. - Currently differential equations implementations are only provided for Discrete modules.
- Returns:
- the index of the dependent trait (or
-1if there is none)
-