Learn R Programming

spinebil (version 0.1.6)

timeSequence: Time each index evaluation for projections in the tour path.

Description

Index evaluation timing may depend on the data distribution, we evaluate the computing time for a set of different projections to get an overview of the distribution of computing times.

Usage

timeSequence(d, t, idx, pmax)

Value

numeric vector containing all distances

Arguments

d

Input data in matrix format

t

List of projection matrices (e.g. interpolated tour path)

idx

Index function

pmax

Maximum number of projections to evaluate (cut t if longer than pmax)

Examples

Run this code
d <- spiralData(4, 500)
t <- purrr::map(1:10, ~ tourr::basis_random(4))
idx <- scagIndex("stringy")
timeSequence(d, t, idx, 10)

Run the code above in your browser using DataLab