angsim_to_cossim: Convert angular similarity to cosine similarity

Description Usage Arguments Value Examples

Description

If an angular similarity has been calculated, then this will convery it to cosine similarities. A cosine similarity is bound between -1 and 1, with 1 being similar and -1 being similar, 0 being orthogonal.

Usage

1

Arguments

x

vector of angular similarities

Value

similarity vector of cosine similarities

Examples

1
2
vals <- runif(100) # 100 values between 0 and 1
angsim_to_cossim(vals)

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