jackolney / CareCascade

CareCascade Model Repository
0 stars 0 forks source link

VectorUpdate Issue #15

Closed jackolney closed 9 years ago

jackolney commented 9 years ago

The PersonIndex() at back() suddenly drops from 1-Size() of vector. Year 5 seems to be significant...

jackolney commented 9 years ago

As incident cases enter the model.. we get a catch and step out of the range of the vector.

jackolney commented 9 years ago

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.

jackolney commented 9 years ago

Maybe GetCases is throwing things out still. Make sure "output" matches the row index.

jackolney commented 9 years ago

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!

jackolney commented 9 years ago

FIXED, but incidence still seems rather eager.