frechetDist: Pairwise Frechet distance

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

View source: R/frechetDist.R

Description

Compute pair-wise Frechet distance in a matrix of trajectories

Usage

1

Arguments

x

Numeric matrix or data.frame with trajectory values. Rows are trajectories, columns are time or similar. SummarizedExperiment object can be provided for compatibility with bioconductor container (for more information see vignette).

time

Numeric vector with time data (time intervals), with equal length to columns number in x.

...

Other arguments to pass to importFromSE if _x_ is SummarizedExperiment-class.

Details

This function is a wrapper of the distFrechet code from kmlShape package for use with a matrix or a data.frame so that the user can compute pairwise distances between all trajectories.

Value

A dist class object of size NxN, where N is rows number in the input data

Author(s)

Fernando Pérez-Sanz (fernando.perez8@um.es)

Miriam Riquelme-Pérez (miriam.riquelmep@gmail.com)

See Also

distFrechet (package kmlShape), slopeDist, frechetDistC (C and faster versión than frechetDist), importFromSE.

Examples

1
2
3
4
data(tscR)
data <- tscR
time <- c(1,2,3)
dist_tscR <- frechetDist(data, time)

tscR documentation built on Nov. 8, 2020, 5:53 p.m.