wtVCosSimilarity: Compute weighted cosine similarity of two numeric vectors

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Compute weighted cosine similarity of two numeric vectors

Usage

1

Arguments

a

numeric vector

b

numeric vector

w

numeric vector of weights

Details

a, b and c are expected to have the same length.

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

Value

Numeric value of cosine similarity


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