dist.apply: Fill Vector with Values for a Distance Matrix

Description Usage Arguments Value

Description

Create a vector that can be used as backing store for a distance matrix by applying a function FUN to all pairings that arise when comparing all the objects in X.

Usage

1
dist.apply(X, FUN = distance.euclidean, cores = 1L, logging = FALSE)

Arguments

X

objects to compare

FUN

the function to apply to all pairs of elements a, b from X

cores

the number of cores to be used for parallel computation

logging

the logging setup, see makeLogger

Value

a vector of length n(n-1)/2 with the results of FUN


thomasWeise/distanceR documentation built on May 14, 2019, 7:35 a.m.