Description Usage Arguments Details Value Author(s) Examples
Returns a function that can be used as a pointwise estimator of intrinsic dimension that uses local data sets with a fixed number of data points.
1 | asPointwiseEstimator(estimator, neighborhood.size, indices=NULL, eps=0.0)
|
estimator |
A local intrinsic dimension estimator. |
neighborhood.size |
The number of neighbors used for each dimension estimate. |
indices |
A vector with indices of the points in |
eps |
If non-zero, the relative error in distance allowed when finding nearest neighbors. See Details. |
The ann
function of the package yaImpute
is used for finding the k
nearest neighbors. The eps
parameter to neighborhoods
is used in the ann
function.
A function that can be used as a pointwise dimension estimator.
Kerstin Johnsson, Lund University
1 2 3 4 5 6 | data <- swissRoll3Sph(300, 300)
# the first 300 data points are on the swiss roll (ID=2) , the last 300 on the 3-sphere (ID=3)
essPointwiseDimEst <- asPointwiseEstimator(essLocalDimEst, neighborhood.size=10,
indices = c(1:10, 301:310))
ess.pw.res <- essPointwiseDimEst(data)
ess.pw.res$dim.est
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.