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

Description Usage Arguments Value Examples

View source: R/timer.R

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

1
timeSequence(d, t, idx, pmax)

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)

Value

numeric vector containing all distances

Examples

1
2
3
4
d <- spiralData(4, 1000)
t <- purrr::rerun(10, tourr::basis_random(4))
idx <- scagIndex("Skinny")
timeSequence(d, t, idx, 10)

spinebil documentation built on Aug. 28, 2019, 5:04 p.m.