pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
#include <cmath>
#include <tuple>
#include <vector>
#include <random>
#include <string>
#include <stdexcept>
#include "utils.hpp"
Go to the source code of this file.
Classes | |
class | pops::Simulation< IntegerRaster, FloatRaster, RasterIndex > |
The main class to control the spread simulation. More... | |
Namespaces | |
pops | |
Enumerations | |
enum | pops::ModelType { pops::ModelType::SusceptibleInfected, pops::ModelType::SusceptibleExposedInfected } |
The type of a epidemiological model (SI or SEI) More... | |
Functions | |
template<typename Container > | |
void | pops::rotate_left_by_one (Container &container) |
Rotate elements in a container to the left by one. More... | |
template<typename Generator > | |
std::vector< int > | pops::draw_n_from_v (std::vector< int > v, unsigned n, Generator &generator) |
Draws n elements from a vector. More... | |
ModelType | pops::model_type_from_string (const std::string &text) |
Get a corresponding enum value for a string which is a model type name. More... | |
ModelType | pops::model_type_from_string (const char *text) |
Overload which allows to pass C-style string which is nullptr (NULL) More... | |