FindFD: Find f and delta from distance matrix.

Description Usage Arguments Value

Description

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

Usage

1
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.



Search within the ADPclust package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.