getStepLengths: Find the step lengths:

Description Usage Arguments Value Examples

View source: R/TrajectoryGeometry.R

Description

This finds the lengths of the steps along a path

Usage

1
getStepLengths(path, from = 1, to = nrow(path), d = ncol(path))

Arguments

path

- This is an mxn dimensional matrix. Each row is considered a point.

from

- The starting place along the path which will be treated as the center of the sphere. This defaults to 1.

to

- The end point of the path. This defaults to nrow(path).

d

- The dimension under consideration. This defaults to ncol(path)

Value

This function returns the length of each step in a path.

Examples

1
2
stepLengths = getStepLengths(path=crooked_path)
stepLengths = getStepLengths(path=crooked_path,from=4)

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