R/estimate_nearneighbor1.R
estimate_nearneighbor1.Rd
Based on an assumption of data points being locally uniformly distributed,
est.nearneighbor1
estimates the intrinsic dimension based on the
local distance information in an iterative manner.
an \((n\times p)\) matrix or data frame whose rows are observations.
maximum neighborhood size, smaller than \(p\).
a named list containing containing
estimated intrinsic dimension.
Pettis KW, Bailey TA, Jain AK, Dubes RC (1979). “An Intrinsic Dimensionality Estimator from Near-Neighbor Information.” IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-1(1), 25--37.
# \donttest{
## create an example data with intrinsic dimension 2
X = cbind(aux.gensamples(dname="swiss"),aux.gensamples(dname="swiss"))
## acquire an estimate for intrinsic dimension
output = est.nearneighbor1(X)
sprintf("* est.nearneighbor1 : estimated dimension is %.2f.",output$estdim)
#> [1] "* est.nearneighbor1 : estimated dimension is 5.01."
# }