computeSimilarityMatrix: Compute similarity matrix.

View source: R/computeSimilarityMatrix.R

computeSimilarityMatrixR Documentation

Compute similarity matrix.

Description

Given a list of objects and a function which computes a similarity measure between two objects of the list, computeSimilarity returns a similarity matrix.

Usage

computeSimilarityMatrix(set, sim.fun, ...)

Arguments

set

[list]
List of objects.

sim.fun

[function(x, y, ...)]
Function which expects two objects x and y as first and second arguments and returns a scalar value.

...

[any]
Passed down to sim.fun.

Value

[matrix(n, n)] (n,n) matrix with n being the length of set.


jakobbossek/mcMST documentation built on March 14, 2023, 4:28 p.m.