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.


NumbersInternational/flipStatistics documentation built on April 12, 2024, 9:25 a.m.