changeset 66:662a95a28359 draft default tip

Uploaded
author greg
date Mon, 25 Nov 2019 14:12:07 -0500
parents 4d86920b1a6e
children
files insect_phenology_model.R
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/insect_phenology_model.R	Thu Nov 21 15:31:50 2019 -0500
+++ b/insect_phenology_model.R	Mon Nov 25 14:12:07 2019 -0500
@@ -286,7 +286,7 @@
         mortality.probability[mortality.probability<0] = 0;
     }
     # Make mortality adjustments based on adj parameter.
-    mortality.probability = (100 - mortality.probability) * (1+adj) + mortality.probability;
+    mortality.probability = (100 - mortality.probability) * adj + mortality.probability;
     # if mortality > 100, make it equal to 100.
     mortality.probability[mortality.probability>100] = 100;
     # If mortality <0, make equal to 0.