Learn R Programming

funtimes (version 2.2)

CNeighbor: Neighborhood of time series

Description

This is an auxillary function to identify which time series in Bv are $E^\theta_\delta$-neighbors of Bu, based on Definition 2 by Ciampi et al. (2010).

Usage

CNeighbor(Bu, Bv, Alpha, Beta, Delta, Theta)

Arguments

Bu
a time series vector for which the neighborhood is investigated.
Bv
a time series vector (of the same length as Bu) or a matrix (time series in columns) containing potential neighbors.
Alpha
lower limit of the time series domain.
Beta
upper limit of the time series domain.
Delta
closeness parameter, a real value in [0,1].
Theta
connectivity parameter, a real value in [0,1].

Value

A vector of logical values indicating which time series in Bv are $E^\theta_\delta$-neighbors of Bu.

References

Ciampi, A., Appice, A. and Malerba, D. (2010) Discovering trend-based clusters in spatially distributed data streams. In International Workshop of Mining Ubiquitous and Social Environments, pages 107--122.

See Also

CHomogeneity, CExpandSlideCluster, CSlideCluster, CExpandWindowCluster, CWindowCluster.

Examples

Run this code
Bu <- rnorm(10)
Bv <- rnorm(10)
Alpha <- min(c(Bu,Bv))
Beta <- max(c(Bu,Bv))
CNeighbor(Bu, Bv, Alpha, Beta, Delta=0.5, Theta=0.8)

Run the code above in your browser using DataLab