CosineSimilarities: 'CosineSimilarities'

View source: R/cosinesimilarity.R

CosineSimilaritiesR Documentation

CosineSimilarities

Description

Computes the cosine similarity between columns of a matrix. The cosine similarity is the cosine of the angle between vectors (columns).

Usage

CosineSimilarities(x, weight = NULL)

Arguments

x

A matrix whose columns we use to calculate the cosine similarity.

weight

A vector of weights.


Displayr/flipStatistics documentation built on Feb. 26, 2024, 12:44 a.m.