frechetDist {tscR}R Documentation

Pairwise Frechet distance

Description

Compute pair-wise Frechet distance in a matrix of trajectories

Usage

frechetDist(x, time, ...)

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


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



[Package tscR version 1.6.0 Index]