find_contiguous_region: Find a contiguous subset of points.

Description Usage Arguments Details Value

View source: R/branchmodel_numerical.R

Description

Find a contiguous subset of points.

Usage

1
find_contiguous_region(all_points, good_idx, root_idx)

Arguments

all_points

Data used.

good_idx

The "good" points are 'all_points[good_idx, ]'.

root_idx

The indices returned include this number.

Details

Given a set of "good" points and a "root", find a group of good points that contains the root and doesn't span gaps with nearby "bad" points.

Value

An atomic vector of indexes such that 'all_points[output, ]' is contiguous and not interrupted by 'all_points[-output, ]'.


ekernf01/branchmodel documentation built on Oct. 24, 2020, 8:56 a.m.