Algorithm 1.
Posterior sampling of spatially meshed model (1) and predictions.
| Initialize and for , , and | ||
| for do | ⊳ sequential MCMC loop | |
| 1: | for , sample | |
| 2: | for , sample | |
| 3: | sample | |
| for do | ⊳ sequential | |
| for do in parallel | ||
| 4: | sample | ⊳ reference sampling |
| for do in parallel | ||
| 5: | sample | ⊳ non-reference sampling |
| Assuming convergence has been attained after iterations: | ||
| discard for | ||
| Output: Correlated sample of size with density | ||
| . | ||
| Predict at : for and , sample from , then from | ||