getSphericalData: This is a simplified wrapper for pathToSphericalData

View source: R/TrajectoryGeometry.R

getSphericalDataR Documentation

This is a simplified wrapper for pathToSphericalData

Description

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

Usage

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

sphericalData = getSphericalData(straight_path,'max')

AnnaLaddach/TrajectoryGeometry documentation built on Feb. 23, 2024, 2:24 p.m.