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

View source: R/similarityMeasures.R

A function to check whether a Frechet leash distance is successful or not. This is used by the Frechet calculation and does not need to be called directly.

1 | ```
FrechetCheck(traj1, traj2, leash, dist1, dist2, distSq12)
``` |

`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. |

`leash` |
A numeric leash value to be checked by the function. |

`dist1` |
A vector containing the distance between each successive two points in trajectory1. |

`dist2` |
A vector containing the distance between each successive two points in trajectory2. |

`distSq12` |
A matrix containing the distance between each pair of two points where 1 point lies in trajectory1 and the other in trajectory2. |

This function is required by `Frechet`

and in general does not need to be called directly.

A boolean value is returned. A value of true is returned if the leash is successful and false if not.

Kevin Toohey

Alt, H. and Godau, M. (1995) Computing the Frechet distance between two polygonal curves. *International Journal of Computational Geometry & Applications*, **5(01n02)**, 75–91.

1 2 3 4 5 6 |

SimilarityMeasures documentation built on May 29, 2017, 12:38 p.m.

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.