View source: R/TrajectoryGeometry.R
getStepLengths | R Documentation |
This finds the lengths of the steps along a path
getStepLengths(path, from = 1, to = nrow(path), d = ncol(path))
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) |
This function returns the length of each step in a path.
stepLengths = getStepLengths(path=crooked_path)
stepLengths = getStepLengths(path=crooked_path,from=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.