cosine: generic cosine similarity function

Description Usage Arguments

View source: R/similarity.R

Description

generic cosine similarity function

Usage

1
cosine(x, y = NULL, weights = NULL, complete = FALSE)

Arguments

x

numeric (vector or matrix)

y

if x is numeric vecor, y has to be numeric vector of the same length

weights

numeric; weights for weighted or soft cosine similarity

complete

logical; if FALSE (default) only upper triangle of the similarity matrix is computed


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