cossim_to_angsim: Convert cosine similarity to angular similarity

Description Usage Arguments Value Examples

Description

If a cosine similarity has been calculated by cos_sim, then this function will convert the value to angular similarity. Angular similarity is bound between 0 and 1, with 1 being most similar, 0 being dissimilar, 0.5 being orthogonal

Usage

1

Arguments

x

vector of cosine similarity values

Value

disim vector of angular similarity values

Examples

1
2
vals <- runif(100, -1, 1) # random values
cossim_to_angsim(vals)

Swarchal/TCCS documentation built on May 9, 2019, 3:24 p.m.