gen_orgcurvybranches: Generate data with curvy shaped branches in a initial point

View source: R/branching.R

gen_orgcurvybranchesR Documentation

Generate data with curvy shaped branches in a initial point

Description

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

Usage

gen_orgcurvybranches(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 curvy shaped branches originated in one point.

Examples

set.seed(20240412)
orgcurvybranches <- gen_orgcurvybranches(n = 400, k = 4)

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