Closed jackolney closed 9 years ago
As incident cases enter the model.. we get a catch and step out of the range of the vector.
The problem only arises when you use random_shuffle() and I think that is because it calls at some point the end of the vector to become infected.
Maybe GetCases is throwing things out still. Make sure "output" matches the row index.
Random shuffle ... shuffles by reference.. and therefore shuffles the actual vector. I want to shuffle a COPY of the vector and then sample from the original. HA HA!
FIXED, but incidence still seems rather eager.
The PersonIndex() at back() suddenly drops from 1-Size() of vector. Year 5 seems to be significant...