knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
    fig.width = 12, 
    message = FALSE,
    warning = FALSE,
    tidy.opts = list(
        keep.blank.line = TRUE,
        width.cutoff = 150
        ),
    options(width = 150),
    eval = TRUE
)
library(geospat)

1. Motivation of analysis.

geospat is an R package for calculation of weighted Sum of Distance from Grids (wSDG). The wSDG is an estimate of relative workload, calculated on each facility from geo-information (e.g., longitude and latitude) of the facilities and spatial distribution of the users with weight, e.g., population.
This algrithm was developped to estimate workloads in community pharmacies taking acount for distributions of pharmacies which is inconsistent with population densities. In this vignette, an explanation of the algorithm is presented, using a bucolic-toy example set in grassland.
The analysis can be conducted from the wSDG() function in this package.

2. A toy example -- a grassland.

In advance, I would like to point out that I'm not an entomologist; so there would be some unrealistic behaviors in the bees in following example. I appreciate for any suggestion to correct

require(knitr)
include_graphics("Fig1.png")
require(knitr)
include_graphics("Fig2.png")

3. The algorithm.

Initially, $\frac{\sum_{i=1}^{k}{a_i^2}}{a_l^2}\ \ \| l \in [1,k]\subset \mathbb{Z}$

require(knitr)
include_graphics("Fig3.png")


mrmtshmp/geospat documentation built on Oct. 6, 2020, 1:17 p.m.