View source: R/getBlockDim_function.R
getBlocksDim | R Documentation |
This function generates block dimensions based on the Dirichlet distribution, ensuring no block has zero size.
getBlocksDim(K, p, alpha = 2)
K |
Integer. The number of blocks. |
p |
Integer. The total number of elements to be distributed among the blocks. |
alpha |
Numeric. The concentration parameter for the Dirichlet distribution. Default is 2. |
Integer vector. A sorted vector of block sizes in descending order.
# Generate block dimensions for 5 blocks and 100 elements
getBlocksDim(K = 5, p = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.