cosine_similarity: Determines cosine similarity between two 'matrix' objects

View source: R/cosine_similarity.R

cosine_similarityR Documentation

Determines cosine similarity between two matrix objects

Description

Determines the cosine similarity for two matrices. Requires that a dimension of the two input matrices is equal

Usage

cosine_similarity(mat1 = NULL, mat2 = NULL)

Arguments

mat1

matrix with row and column names

mat2

matrix with row and column names

Value

matrix of cosine similarity between the input matrices

Examples


# cosine_similarity(my_matrix1, my_matrix2)


acranej/CoSim documentation built on March 19, 2022, 3:34 a.m.