Learn R Programming

umap (version 0.2.2.0)

mdCosine: compute cosine distances

Description

compute cosine distances

Usage

mdCosine(m, origin, targets)

Arguments

m

matrix with raw data

origin

index (1-based) of origin element

targets

indexes (1-based) of target elements

Value

dCosine norms between origin and targets