Last chance! 50% off unlimited learning
Sale ends in
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.
est.nearneighbor1(X, K = max(2, round(ncol(X)/5)))
an
maximum neighborhood size, smaller than
a named list containing containing
estimated intrinsic dimension.
pettis_intrinsic_1979Rdimtools
# NOT RUN {
## 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)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab