Description Usage Arguments Details Value Author(s) Examples

View source: R/similarityMeasures.R

This function checks whether two trajectories are compatible with the functions provided. They are first checked if they are represented as matrices. They are then checked to ensure that points in both trajectories have the same dimensions.

1 | ```
TrajCheck(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 function is useful for determining if the trajectories are compatible with the many functions provided. This function is performed at the start of most other functions to ensure that no major errors can occur and that the results make sense.

If there is a problem with one of the checks then a string containing information is returned. If all of the checks pass then -1 is returned.

Kevin Toohey

1 2 3 4 5 6 7 8 |

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.