View source: R/developmental_classifier_helpers.R
tof_cosine_dist | R Documentation |
A function for finding the cosine distance between each of the rows of a numeric matrix and a numeric vector.
tof_cosine_dist(matrix, vector)
matrix |
A numeric matrix. |
vector |
A numeric vector. |
A numeric vector of distances of length 'nrow(matrix)' in which the ith entry represents the cosine distance between the ith row of 'matrix' and 'vector'.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.