pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Class storing and computing quarantine escap metrics for one simulation. More...
#include <quarantine.hpp>
Public Member Functions | |
QuarantineEscape (const IntegerRaster &quarantine_areas, double ew_res, double ns_res, unsigned num_steps, const std::vector< std::vector< int >> &suitable_cells) | |
QuarantineEscape ()=delete | |
void | infection_escape_quarantine (const IntegerRaster &infected, const IntegerRaster &quarantine_areas, unsigned step, const std::vector< std::vector< int >> &suitable_cells) |
Computes whether infection in certain step escaped from quarantine areas and if not, computes and saves minimum distance and direction to quarantine areas for the specified step. More... | |
const EscapeDistDir | escape_info (unsigned step) const |
Computes escape info (if escaped, distance and direction if not escaped) for certain action step. More... | |
bool | escaped (unsigned step) const |
Returns true if infection escaped the quarantine boundary. More... | |
double | distance (unsigned step) const |
Returns minimum distance to quarantine boundary bbox. More... | |
Direction | direction (unsigned step) const |
Returns the direction (N, S, E, W, None) of the minimum distance to quarantine boundary bbox. More... | |
Class storing and computing quarantine escap metrics for one simulation.
Definition at line 45 of file quarantine.hpp.
|
inline |
Definition at line 135 of file quarantine.hpp.
|
delete |
|
inline |
Returns the direction (N, S, E, W, None) of the minimum distance to quarantine boundary bbox.
Returns None if infection already escaped.
Definition at line 224 of file quarantine.hpp.
|
inline |
Returns minimum distance to quarantine boundary bbox.
If infection already escaped, returns NaN. Aggregated over all quarantine areas.
Definition at line 214 of file quarantine.hpp.
|
inline |
Computes escape info (if escaped, distance and direction if not escaped) for certain action step.
Definition at line 196 of file quarantine.hpp.
|
inline |
Returns true if infection escaped the quarantine boundary.
Definition at line 204 of file quarantine.hpp.
|
inline |
Computes whether infection in certain step escaped from quarantine areas and if not, computes and saves minimum distance and direction to quarantine areas for the specified step.
Aggregates over all quarantine areas.
Definition at line 162 of file quarantine.hpp.