vol3d | R Documentation |
Helper function to calculate 3DKUD volume for a 'kde' object
vol3d(fhat, cont = NULL)
fhat |
a kernel density estimate object of class 'kde'. see |
cont |
voxel contour for which volume will be calulated (e.g. 50, 95) |
A numeric vector with volume of kde object
## Import detection data
data(exampletag)
## Estimate 3D kernel density using the ks package
library(ks)
H.pi <- Hpi(exampletag, binned = TRUE) * 3
fhat <- kde(exampletag, H = H.pi)
## Calculate 3D KUD volume
vol3d(fhat = fhat, cont = 50) ## volume of 50% contour in m3
vol3d(fhat = fhat, cont = 95) ## volume of 95% contour in m3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.