min_hpd_inclusion_area {gaiah} | R 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 |
[Package gaiah version 0.0.5 Index]