distanceToSp: Collecting distances between input planes and input special...

Description Usage Arguments Value Examples

View source: R/distances.R

Description

If the optimal view is known, we can use the distance between a given plane and the optimal one as a proxy to diagnose the performance of the guided tour.

Usage

1
distanceToSp(planes, specialPlane)

Arguments

planes

Input planes (e.g. result of guided tour)

specialPlane

Plane defining the optimal view

Value

numeric vector containing all distances

Examples

1
2
3
4
planes <- purrr::rerun(10, tourr::basis_random(5))
specialPlane <- basisMatrix(1,2,5)
d <- distanceToSp(planes, specialPlane)
plot(d)

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