
Generate data with linear shaped branches in a initial point
Source:R/branching.R
gen_orglinearbranches.Rd
This function generates a dataset representing a structure with linear shaped branches.
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.
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.
Examples
set.seed(20240412)
orglinearbranches <- gen_orglinearbranches(n = 400, p = 4, k = 4)
#> ✔ 2 noise dimensions have been generated successfully!!!
#> ✔ 2 noise dimensions have been generated successfully!!!
#> ✔ 2 noise dimensions have been generated successfully!!!
#> ✔ 2 noise dimensions have been generated successfully!!!
#> ✔ Data generation completed successfully!!!