centroid2peakmatrix: Exponential Decay Similarity

View source: R/utils_module.R

centroid2peakmatrixR Documentation

Exponential Decay Similarity

Description

Determines the degree of similarity between a vector a and a vector b as 1/exp(d) where d corresponds to the distance between the two normalized vectors calculated according to the specified method

Usage

centroid2peakmatrix(file_path)

Arguments

a

Vector a

b

Vector b

method

The distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.

normalize

Boolean value indicating whether the a and b vectors should be normalixzed

Value

Similarity between a and b


gbaquer3/rMSIcleanup documentation built on Feb. 24, 2023, 2:58 p.m.