Closed athowes closed 2 years ago
This is the code in Naomi that draws the samples from the model: https://github.com/mrc-ide/naomi/blob/master/R/tmb-model.R#L630-L691 This is the code that takes the quantiles across the samples: https://github.com/mrc-ide/naomi/blob/master/R/outputs.R#L23-L188 In Naomi, the aggregation is done in C++ code by creating a sparse matrix that specifies the aggregation.