urban_fraction_by_density_estimator: Calculate urban fraction using a density estimator

Description Usage Arguments Details Value

View source: R/statistics.R

Description

Calculating urban fraction by pixel is strange when you have 100 m pixels because urban fraciton is 1000 people in a square kilometer, which is 10 people in a square 100 m, so it's more than one large household.

Usage

1
2
3
4
5
6
urban_fraction_by_density_estimator(
  population,
  bioko_sf,
  bandwidth,
  urban_cutoff = 10
)

Arguments

bioko_sf

Shapefile for bioko borders

bandwidth

A bandwidth to use for the kernel density estimator You have to choose this number. Take a look at 'power_bandwidth'.

population_array

a Raster of population

cutoff

The minimum that determines

Details

Therefore, we use a kernel density estimator for these grid resolutions.

Value

A fraction that are above that level


dd-harp/population_comparison_bioko documentation built on Feb. 28, 2021, 11:05 p.m.