getSphericalData: This is a simplified wrapper for pathToSphericalData

Description Usage Arguments Value Examples

View source: R/TrajectoryGeometry.R

Description

It handles the case in which from, to and d are all given by the dimensions of the path

Usage

1
getSphericalData(path, statistic)

Arguments

path

- an m x n matrix. Each row is considered a point

statistic

- one of 'mean','median' or 'max'

Value

This function returns a list whose elements are the projections of the path to the sphere, the center for those projections, the median, mean or max distance from the center to those projections and the name of the statistic used.

Examples

1
sphericalData = getSphericalData(straight_path,'max')

AnnaLaddach/TrajectoryGeometry documentation built on Jan. 28, 2021, 10:41 a.m.