cosineDist: Calculate cosine distance between all rows of a matrix

View source: R/clusterUtils.R

cosineDistR Documentation

Calculate cosine distance between all rows of a matrix

Description

Using the cosine distance function form las package

Usage

cosineDist(binMat, valNA = NULL, rescale = F)

Arguments

binMat

A matrix of numbers for which you want to calculate the distance between rows

valNA

Value to give NAs in matrix

rescale

Should matrix be rescaled from 0..1 range to -1..1 range?

Value

A distance object (lower triangle) with the distances between all rows of the input matrix


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.