Description Usage Arguments Details Value Examples
calculateWeightedDistMatrix
The weighted matrix is used as a standardized version of the distance matrix.
1 | calculateWeightedDistMatrix(distM)
|
distM, |
2D matrix with the distance among all pair of coordinates. |
Computes the similarity matrix of the distance by taking the reciprocal of the distance \frac{1}{d}. A value of Zero is assigned when this value can not be calculated. The whole reciprocal matrix is scaled by dividing each value by the sum of all the elements of the matrix.
weighted distance matrix. The sum of this matrix is 1.
1 2 3 4 | fileInput <- system.file("testdata", "chen.csv", package="Irescale")
data<-loadFile(fileInput)
distM<-calculateEuclideanDistance(data$data)
distW<-calculateWeightedDistMatrix(distM)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.