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/vite documentation built on April 25, 2021, 2:46 a.m.