powered by
Calculates distance matrix, through \(\left( \sum_{i=1}^{n} |x_i - y_i|^p \right)^{1/p}\)
FractionalDistance(Data, p)
[1:n,1:n] symmetric Matrix, containing the distances between the cases (rows) of the input matrix
[1:n,1:d] Matrix, with n cases, d variables
Scalar, value for p
Michael Thrun
Values of p < 1 can be used, which can be useful for high-dimensional data, see references.
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)
Run the code above in your browser using DataLab