min_hpd_inclusion_area: compute the smallest area of an HPD credible set that...

View source: R/assess.R

min_hpd_inclusion_areaR Documentation

compute the smallest area of an HPD credible set that includes the true bird location

Description

This function computes the area of the HPD credible set that is as small as possible but just barely includes the cell with the true location (or, if the true location is not actually inluded in the range map, we use the closest cell on the range map to the true location). This operates on a single rasterLayer. To operate on a rasterBrick of posteriors and a data frame of lat-longs, use 'min_hpd_inc_area_df()'.

Usage

min_hpd_inclusion_area(M, lat, long)

Arguments

M

the posterior surface matrix

lat

the true latitude

long

the true longitude


gaiah documentation built on April 28, 2023, 1:11 a.m.