Given a list of objects and a function which computes a similarity
measure between two objects of the list, computeSimilarity
returns a
similarity matrix.
computeSimilarityMatrix(set, sim.fun, ...)
[matrix(n, n)
] \((n,n)\) matrix with \(n\) being the length of set
.
[list
]
List of objects.
[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
.