tsdist_vr: van Rossum distance

View source: R/ts_dist.R

tsdist_vrR Documentation

van Rossum distance

Description

This function compares the times which the events occur e.g., time indices where the time series values are different than zero. Note that the intensity does not matter but if there is an event or not. This function also performs a statistical test using a shuffling approach to test significance. This implementation uses the fmetric function from the mmpp package.

Usage

tsdist_vr(ets1, ets2, tau = 1, sig_test = FALSE, reps = 100, sig_level = 0.01)

Arguments

ets1

Event time series 1 (one means an event, or zero otherwise)

ets2

Event time series 2 (one means an event, or zero otherwise)

tau

Parameter for filtering function (See fmetric function from mmpp package.)

sig_test

Run a statistical test. Return 0 if significant or 1 otherwise.

reps

Number of repetitions to construct the confidence interval

sig_level

The significance level to test if correlation is significant.

Value

distance


ts2net documentation built on June 9, 2022, 9:06 a.m.