kidusasfaw / spatPomp

R package for statistical inference of spatiotemporal partially observed Markov processes
GNU General Public License v3.0
11 stars 10 forks source link

debugging to get measles spatPomp working with genkf #3

Closed ionides closed 4 years ago

ionides commented 4 years ago
  1. measles.R    // needed for the Ensemble Kalman filter     // or other methods making real-valued perturbations to the state     // reulermultinom requires integer-valued double type for states     S[u] = S[u]>0 ? floor(S[u]) : 0;     E[u] = E[u]>0 ? floor(E[u]) : 0;     I[u] = I[u]>0 ? floor(I[u]) : 0;     R[u] = R[u]>0 ? floor(R[u]) : 0;

  2. genkf.R  pStop -> pomp:::pStop