slopeDist {tscR}R Documentation

Pairwise slope distance

Description

Compute pairwise distance based on slopes in a matrix of trajectories

Usage

slopeDist(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.

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

frechetDistC and frechetDist (R and slower versión than frechetDistC.), importFromSE.

Examples


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



[Package tscR version 1.2.0 Index]