Description Usage Arguments Details Value See Also Examples
View source: R/epsilonCompute.R
Uses the pair-wise distances to estimate a diffusion map epsilon value by the median p*n-th nearest neighbor
1 | epsilonCompute(D, p = 0.01)
|
D |
n-by-n pairwise distance matrix for a data set with n points, or alternatively output from the dist() function |
p |
distances to p*n-th nearest neighbor are used. Default value is .01 |
Function is used as the default value in diffuse(). For inference problems, it is advised that the results be optimized over epsilon.
epsilon |
value of epsilon to be used in diffusion map |
1 2 3 4 5 6 | data(annulus)
D = dist(annulus) # use Euclidean distance
epsilonCompute(D,.005)
epsilonCompute(D,.01)
epsilonCompute(D,.05)
epsilonCompute(D,.1)
|
[1] 0.05670553
[1] 0.1223964
[1] 1.45663
[1] 3.585611
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.