Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/similarityMeasures.R

A function to calculate the Frechet distance between two trajectories. This function is called by the frechet function when one trajectory consists of a single point. This function does not need to be directly called.

1 | ```
SinglePointCalc(traj1, traj2)
``` |

`traj1` |
An m x n matrix containing trajectory1. Here m is the number of points and n is the dimension of the points. |

`traj2` |
A k x n matrix containing trajectory2. Here k is the number of points and n is the dimension of the points. The two trajectories are not required to have the same number of points. |

This calculates the longest distance to the single point trajectory. This is the Frechet distance for such a pair of trajectories. This function is automatically called if required by the `Frechet`

function, therefore it does not need to be called directly.

A floating point value representing the Frechet distance is returned.

Kevin Toohey

1 2 3 4 5 6 7 |

```
[1] 6.708204
```

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.