canberraDist: Calculate canberra distance between all rows of a matrix

View source: R/clusterUtils.R

canberraDistR Documentation

Calculate canberra distance between all rows of a matrix

Description

Using the canberra distance function from stats package

Usage

canberraDist(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.