cosine_similarity_from_matrix: Calculate cosine similarity between a vector and the rows of...

Description Usage Arguments Value

View source: R/unsupervised.R

Description

Calculate cosine similarity between a vector and the rows of a matrix

Usage

1

Arguments

x

A numeric vector of length P

m

An NxP matrix

Value

Returns a vector of length N containing the cosine similarity between the vector x and all the rows of m


ParkerICI/scgraphs documentation built on April 30, 2021, 1:10 p.m.