Description Usage Arguments Value Examples

View source: R/TrajectoryGeometry.R

This function takes a point (typically a center) and a set of points and finds the spherical distance between the given point and each of the others. If requested, it will first normalize all of them.

1 | ```
findSphericalDistance(center, points, normalize = FALSE)
``` |

`center` |
- The proposed point from which distance to the others should be measured. This is a numerical vector of length d. |

`points` |
- The set of target points for which spherical distance to the center should be calculated. This is in the form of a n x d matrix. |

`normalize` |
- If this is set to TRUE, the function will start by normalizing the input points. |

This returns a vector of n spherical distances in radians.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.