getStepLengths: Find the step lengths:

View source: R/TrajectoryGeometry.R

getStepLengthsR Documentation

Find the step lengths:

Description

This finds the lengths of the steps along a path

Usage

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

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

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