Description Usage Arguments Details Value Functions
View source: R/connectivityMatrices.R
Distance measurements
1 2 3 4 5 6 7 | cos_dist(mat)
sqrt_cos_dist(mat)
cor_dist(mat)
bin_dist(mat, threshold = 0.01)
|
mat |
A matrix |
threshold |
Threshold to use to binarize the matrix |
cos_dist
returns the cosine distance, sqrt_cos_dist
the squared cosine distance, cor_dist
one minus the spearman correlation
between vectors, and bin_dist
the binary distance after thresholding
A distance object containing distances between the
rows of mat
sqrt_cos_dist
: Squared cosine distance
cor_dist
: Correlation distance matrix
bin_dist
: Binary distance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.