cosine_x_to_m: Cosine vector to matrix

Description Usage Arguments Value Examples

View source: R/cosine_x_to_m.R

Description

Cosine vector to matrix

Usage

1

Arguments

x

numeric vector

m

numeric matrix

Value

vector of cosine similarities between x and m

Examples

1
2
3
vec <- c(1,2,3)
mat <- matrix(c(1,2,3,3,2,1,2,1,3),ncol=3)
cosine_x_to_m(vec,mat)

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.