Share of total area carried by the largest fires

landmine_area_share(sizes, topQuantile = 0.95)

Arguments

sizes

numeric vector of fire sizes.

topQuantile

numeric; 0.95 selects the largest 5%.

Value

A numeric scalar between 0 and 1.

Details

Strictly greater-than, so fires exactly at the quantile are excluded. With a heavily tied distribution – which a rounded truncated Pareto is, since most draws round to 1 – that matters: the selected set can be much smaller than 1 - topQuantile of the fires.

Examples

landmine_area_share(c(1, 1, 1, 1, 100), 0.5)
#> [1] 0.9615385