FindFD {ADPclust}R Documentation

Find f and delta from distance matrix.

Description

Calculate f(x) and delta(x) from distm and h.

Usage

FindFD(distm, h, fdelta)

Arguments

distm

distance matrix of class 'dist'.

h

bandwidth.

fdelta

character string that specifies the method used to estimate local density f(x) at each data point x. The default is "mnorm" that uses a multivariate Gaussian density estimation to calculate f. Other options are listed below. Here 'distm' denotes the distance matrix.

  • unorm(f <- 1/(h * sqrt(2 * pi)) * rowSums(exp(-(distm/h)^2/2))); Univariate Gaussian smoother

  • weighted(f <- rowSums(exp(-(distm/h)^2))); Univariate weighted smoother

  • count(f <- rowSums(distm < h) - 1); Histogram estimator (used in Rodriguez [2014])

Value

list of two items: f and delta.


[Package ADPclust version 0.7 Index]