Skip to content

Commit

Permalink
Normalize immune memory by deme size, not cell count
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Nov 24, 2023
1 parent 3deb007 commit 8d41137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avida-core/source/main/cDeme.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class cDeme
}

void UpdateParasiteMemoryScore(const double decay) {
parasite_memory_score += GetParasiteLoad();
parasite_memory_score += static_cast<double>(GetNumParasites()) / GetSize();
parasite_memory_score *= decay;
}
double GetParasiteMemoryScore() const { return parasite_memory_score; }
Expand Down

0 comments on commit 8d41137

Please sign in to comment.