cos.sim: Cosine Similarity

Description Usage Arguments Value

View source: R/signatures_utils.R

Description

Compute the cosine similarity between two vectors, using the formula sum(a*b)/sqrt(sum(a^2)*sum(b^2)).

Usage

1
2
## S3 method for class 'sim'
cos(a, b)

Arguments

a

first vector to compare

b

second vector to compare

Value

cosine similarity


pdiakumis/hrdetect documentation built on May 17, 2020, 5:30 p.m.