Skip to main content

competition_step

Function competition_step 

Source
pub fn competition_step(
    n1: f64,
    n2: f64,
    r1: f64,
    r2: f64,
    k1: f64,
    k2: f64,
    alpha12: f64,
    alpha21: f64,
    dt: f64,
) -> (f64, f64)
Expand description

Lotka-Volterra competition between two species. Returns (new_pop1, new_pop2).