R6 Class representing a set of Parameters

R6 Class representing a set of Parameters

Format

R6Class object.

Value

Object of R6Class with all the population data.

Details

Parameters contains all the parameters related to the population and the epidemic

Public fields

nage

number of age groups

vorHBase

hospital database containing all hospital information

vorPolyHosp

the voronoi polygons

vorPolyRegion

the voronoi polygons

vorPopFiness

the population inside each polygons

vorPopRegion

the population inside each Region

Methods

Public methods


Method new()

Create a new `PolyHosp` object.

Usage

PolyHosp$new(hospitals = NULL)

Arguments

hospitals

list of hospitals on which we build the voronoi diagram

Returns

A new `PolyHosp` object.


Method getMap()

get the leaflet map

Usage

PolyHosp$getMap()

Returns

a leaflet map with the polygons


Method getPopFiness()

get the population from a specific polygon by Finess

Usage

PolyHosp$getPopFiness(finess)

Arguments

finess

the finess of the specific polygon


Method getPopRegion()

get the population from a specific Region by name

Usage

PolyHosp$getPopRegion(region)

Arguments

region

the finess of the specific polygon


Method clone()

The objects of this class are cloneable with this method.

Usage

PolyHosp$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

pop = PolyHosp$new()