Exemplo n.º 1
0
        private float preyChangeInPopulationWithCarryingCapacity(InitialParameters initialparams, System.Collections.Hashtable lotkavolterravariables)
        {
            float a = initialparams.GrowthRate * (float)lotkavolterravariables["preypopulation"];
            //float b = (float)lotkavolterravariables["preypopulation"] + (initialparams.DeathPropotionalityScore * (float)lotkavolterravariables["predatorpopulation"]);
            float b = (float)lotkavolterravariables["preypopulation"] + (initialparams.AlphaNP * (float)lotkavolterravariables["predatorpopulation"]);
            float c = b / initialparams.CarryingCapacity;
            float d = 1 - c;

            return(a * d);
        }
Exemplo n.º 2
0
 private float growth(float populationSize, InitialParameters initialparams)
 {
     return(initialparams.GrowthRate * populationSize * initialparams.TimeIncrement);
 }
Exemplo n.º 3
0
 private float deathrate(float populationSize, InitialParameters initialparams)
 {
     return(initialparams.GrowthRate * (1 - (populationSize / initialparams.CarryingCapacity)));
 }
Exemplo n.º 4
0
 private float deaths(float populationSize, InitialParameters initialparams)
 {
     return(populationSize * initialparams.DeathPropotionalityScore);
 }
Exemplo n.º 5
0
 private float births(float populationSize, InitialParameters initialparams)
 {
     return(populationSize * initialparams.BirthFraction);
 }