distanceMatrixWrapper: Distance Matrix Wrapper

View source: R/distanceCalculation.R

distanceMatrixWrapperR Documentation

Distance Matrix Wrapper

Description

Wrapper to calculate the distance matrix, with one or multiple distance functions.

Usage

distanceMatrixWrapper(x, distanceFunction, ...)

Arguments

x

list of candidate solutions whose distance is evaluated

distanceFunction

Distance function of type f(x,y)=r, where r is a scalar and x and y are candidate solutions whose distance is evaluated.

...

further arguments passed to distanceFunction

Value

matrix of distances between all solutions in list x

Examples

x <- list(5:1,c(2,4,5,1,3),c(5,4,3,1,2))
dm1 <- distanceMatrix(x,distancePermutationHamming)
dm2 <- distanceMatrix(x,distancePermutationInsert)
dmBoth <- distanceMatrixWrapper(x,list(distancePermutationHamming,distancePermutationInsert))


CEGO documentation built on May 29, 2024, 3:35 a.m.