gen_orglinearbranches: Generate data with linear shaped branches in a initial point

View source: R/branching.R

gen_orglinearbranchesR Documentation

Generate data with linear shaped branches in a initial point

Description

This function generates a dataset representing a structure with linear shaped branches.

Usage

gen_orglinearbranches(n = 400, p = 4, k = 4, allow_share = TRUE)

Arguments

n

A numeric value (default: 400) representing the sample size.

p

A numeric value (default: 4) representing the number of dimensions.

k

A numeric value (default: 4) representing the number of branches.

allow_share

A logical value (default: TRUE). If TRUE, multiple branches may share the same 2D subspace. If FALSE, branches are sampled without replacement from all possible 2D subspaces until exhausted.

Value

A data containing linear shaped branches originated in one point.

Examples

set.seed(20240412)
orglinearbranches <- gen_orglinearbranches(n = 400, p = 4, k = 4)

cardinalR documentation built on Dec. 18, 2025, 9:08 a.m.