dkdevine: Evaluate the density of a kdevine object

View source: R/kdevine.R

dkdevineR Documentation

Evaluate the density of a kdevine object

Description

Evaluate the density of a kdevine object

Usage

dkdevine(x, obj)

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.

See Also

kdevine

Examples

# load data
data(wdbc)

# 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)


kdevine documentation built on June 22, 2024, 10:52 a.m.