View source: R/FractionalDistance.R
FractionalDistance | R Documentation |
Calculates distance matrix, through \left( \sum_{i=1}^{n} |x_i - y_i|^p \right)^{1/p}
FractionalDistance(Data, p)
Data |
[1:n,1:d] Matrix, with n cases, d variables |
p |
Scalar, value for p |
Values of p < 1 can be used, which can be useful for high-dimensional data, see references.
DistanceMatrix |
[1:n,1:n] symmetric Matrix, containing the distances between the cases (rows) of the input matrix |
Michael Thrun
Aggrawal, C. C., Hinneburg, A., Keim, D. (2001), On the Suprising Behavior of Distance Metrics in High Dimensional Space.
data(Hepta)
distMatrix = FractionalDistance(Hepta$Data, p = 1/2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.