computeSimilarityMatrix {mcMST}R 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.


[Package mcMST version 1.1.1 Index]