Description Usage Arguments Details Value Author(s) Examples
Distance by closeness
1 | dist_by_closeness(mat)
|
mat |
a numeric matrix where the distance is calculated by rows |
For two rows in the matrix, assume x_1, x_2, ..., x_n1 are the column index of none-zero values in row 1 and y_1, y_2, ... y_n2 are the column index for non-zero values in row 2, the distance between the two rows based on the closeness is calculated as:
d_closeness = sum_i sum_j(|x_i - y_j|) / (n_1*n_2)
A dist
object
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.