vCosSimilarity: Compute cosine similarity of two numeric vectors

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Compute cosine similarity of two numeric vectors

Usage

1

Arguments

a

numeric vector

b

numeric vector

Details

a and b are expected to have the same length.

∑(a*b)/√(∑(a^2)∑(b^2))

Value

Numeric value.


vh-d/RPortfolioSimilarity documentation built on Oct. 17, 2019, 3:11 a.m.