cluster_candidate_list: Cluster Candidate List

Description Usage Arguments Value Examples

View source: R/cluster_candidate_list.R

Description

This function clusters candidates in pairs.

Usage

1
similar(a, b, tol)

Arguments

tol

integer, tolerance for two numbers being considered similar.

positions

vector of candidates in which the main signal might have jumped.

diff_positions

derivative of the signal in positions.

Value

list of candidates grouped in pairs according to clustering and similar jump.

Examples

1
2
3
x <- c(rep(1, 10), rep(50, 10), rep(1, 10))
diff_x <- c(0, diff(x))
positions <- which(abs(diff_x) > 10)

matiasandina/stepfinder documentation built on Oct. 25, 2019, 9:24 a.m.