sftMCosSimilarity: Compute soft cosine similarities for each pair of rows from...

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Compute soft cosine similarities for each pair of rows from given matrix and given weights

Usage

1

Arguments

input_mat

numeric input matrix

weights

numeric vector of weights

Details

Soft cosine similarity allows accounting for (cor)relations between features.

Value

Upper triangle matrix where {i, j} element is the cosine similarity of i-th and j-th row of the original matrix.


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