Evaluate the density of a kdevine object
Arguments
- x
(\(m x d\)) matrix of evaluation points (or vector of length \(d\)).
- obj
a kdevine
object.
Value
The density estimate evaluated at x
.
Examples
# load data
data(wdbc)
wdbc <- wdbc[1:30, ]
# estimate density (use xmin to indicate positive support)
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))
# evaluate density estimate
dkdevine(c(1000, 0.1, 0.1), fit)
#> [1] 0.1923682