From 8d41137c9647289081b0a8d3959ed7e55a9b729e Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Fri, 24 Nov 2023 13:44:28 -0500 Subject: [PATCH] Normalize immune memory by deme size, not cell count --- avida-core/source/main/cDeme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avida-core/source/main/cDeme.h b/avida-core/source/main/cDeme.h index d7645f30d..7fbfb25ef 100644 --- a/avida-core/source/main/cDeme.h +++ b/avida-core/source/main/cDeme.h @@ -193,7 +193,7 @@ class cDeme } void UpdateParasiteMemoryScore(const double decay) { - parasite_memory_score += GetParasiteLoad(); + parasite_memory_score += static_cast(GetNumParasites()) / GetSize(); parasite_memory_score *= decay; } double GetParasiteMemoryScore() const { return parasite_memory_score; }