File name |
Function |
---|---|
FitCost_BasalFitness |
Calculates the cost function for monocultures (i.e. the difference between the target mechanistic model dynamics and the dynamics obtained from the pairwise model) |
FitCost_BFSatLV.m |
Calculates the cost function for communities (i.e. the difference between the target mechanistic model dynamics and the dynamics obtained from the saturable L-V pairwise model) |
FitCost_BFSatLV_Dp.m |
Calculates the cost function for communities (i.e. the difference between the target mechanistic model dynamics and the dynamics obtained from the alternative pairwise model) |
DynamicsMM_WM_MonocultureDpMM.m |
Returns growth dynamics for monocultures, based on the mechanistic model |
DynamicsMMSS_WM_NetworkDpMM.m |
Returns growth dynamics for communities of multiple species, based on the mechanistic model |
DynamicsWM_NetworkBFSatLV.m |
Returns growth dynamics for communities of multiple species, based on the saturable L-V pairwise model |
DynamicsWM_NetworkBFSatLV_Dp.m |
Returns growth dynamics for communities of multiple species, based on the alternative pairwise model |
DeriveBasalFitnessMM_WM_DpMM.m |
Estimates monoculture parameters of pairwise model (Step 1) |
DeriveBFSatLVMMSS_WM_DpMM.m |
Estimates saturable L-V pairwise model interaction parameters (Step 2) |
DeriveBFSatLVMMSS_WM_DpMM_Dp.m |
Estimates alternative pairwise model interaction parameters (Step 2) |
DeriveBFSatLVMMSS_WM_DpMM_r21.m |
Estimates saturable L-V pairwise model interaction parameters ( and ) in cases where we know that S2 is only affected by S1, to accelerate optimization |
DeriveBFSatLVMM_WM_DpMM_Dp_r21.m |
Estimates alternative pairwise model interaction parameter () in cases where we know that S2 is only affected by S1 and that to accelerate optimization |
DynamicsWM_NetworkBFLogLV_DI.m |
Returns growth dynamics for communities of two species competing for an environmental resource while engaging in an additional interaction, based on the logistic L-V pairwise model (Figure 6) |
C2Sp2_ARCLi_NoSatDp_FitBFLogLV_DI.m |
Estimates logistic L-V pairwise model interaction parameters for communities of two species competing for an environmental resource while engaging in an additional interaction, and compares community dynamics from pairwise and mechanistic models (Figure 6) |
Dynamics_WM_NetworkDpMM_ODE23.m |
Defines differential equations when using Matlab’s ODE23 solver to calculate community dynamics |
Case_C1Sp2_CmnsDp_ODE23.m |
Example of using Matlab ODE23 solver for calculating community dynamics |