powered by
This function generates a dataset representing a star based pyramid.
gen_pyrstar(n = 500, p = 4, h = 5, rb = 3)
A data containing the star based pyramid.
An integer value (default: 500) representing the sample size.
An integer value (default: 4) representing the number of dimensions.
A numeric value (default: 5) representing the height of the pyramid.
A numeric value (default: 3) representing the base radius of the pyramid.
set.seed(20240412) pyrstar <- gen_pyrstar(n = 500, p = 4, h = 5, rb = 3)
Run the code above in your browser using DataLab